It's all about the answers!

Ask a question

How to debug BIRT report?


pugazhenthi samidurai (26423942) | asked May 14 '12, 1:02 a.m.
Hi,

i am working on BIRT report with java script.

Is there any option for debugging the report script execution.

Like java debugger in eclipse.

3 answers



permanent link
Rafik Jaouani (5.0k16) | answered Jul 06 '12, 1:05 p.m.
JAZZ DEVELOPER
I usually use some dynamic text items that display the values of the javascript variables. You can control the visibility of those items using a global javascript debug variable that you set to either true or false. But watch out as the hidden dynamic text could impact the performance of your report, especially if it gets bound to a data set.

permanent link
Matthias Buettgen (23612131) | answered Jul 06 '12, 4:55 a.m.
Hi,

As for as I know is there no support by the built-in Eclipse debugger. Anyway did I find a kind of work-around to debug the Java Script in more ancient way.
There exists a rather interesting description on how to debug Java Script in BIRT reports using a popup window. More information about this can be found here http://www.lebirtexpert.com/wordpress/2010/03/03/using-a-popup-debug-window/.
Please notice that this can only be used in the report designer and not on the server. Therefore you're limited to the 1000 rows which are returned by the server, but in general it should be quite helpful to get some basic information about the variables and rows returned.

Btw, if you'd like to use it for charts as well it's necessary to define a function and a reference to it which needs to be available in a persistent global variable.

Regards
Matthias

permanent link
Eric Jodet (6.3k5111120) | answered May 16 '12, 9:33 a.m.
JAZZ DEVELOPER
Hello,
you may start here: https://jazz.net/wiki/bin/view/Main/ReportsMain
Keeping in mind that the jazz Dev Wiki is provided as-is (no official support, may contain outdated information)

Thanks.
Eric.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.