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.

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.
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 (23612331) | answered Jul 06 '12, 4:55 a.m.

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
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.


permanent link
Eric Jodet (6.3k5111120) | answered May 16 '12, 9:33 a.m.
you may start here:
Keeping in mind that the jazz Dev Wiki is provided as-is (no official support, may contain outdated information)


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.