Skip to main content



      Home
Home » Archived » BIRT » RTC Version 4.05(Debug Birt Reports in Eclipse)
RTC Version 4.05 [message #1588721] Tue, 27 January 2015 22:29 Go to next message
Eclipse UserFriend
I want to know how we can debug Birt Reports in the Eclipse 4.05 Client.I think we are using java script but alert or any message statements are not working so i created a variable and how it is initializing i want to know during execution of the report.Is there any way where we can debug the script.
Re: RTC Version 4.05 [message #1589663 is a reply to message #1588721] Wed, 28 January 2015 10:26 Go to previous messageGo to next message
Eclipse UserFriend
The general way that I've seen others debug script within a BIRT report (this is also what I do) is to run eclipsec.exe vs eclipse.exe. This runs a separate console where you can use System.out.println("whatever") to output to the console helping to debug your script. Not sure how this works with RTC as I've never used it, but you could always download a standalone copy of Eclipse/BIRT to do your script error testing. Hope this helps.
Re: RTC Version 4.05 [message #1591460 is a reply to message #1588721] Thu, 29 January 2015 09:47 Go to previous messageGo to next message
Eclipse UserFriend
I found the attached code in the book "LeBIRT Expert Guide to BIRT Best Practices" by David Mehi and it works great. It produces a popup window. You can't set breakpoints, but I have found it very helpful.

I also found the following code in another forum post. It works well, but I personally prefer the Le BIRT method.

The following code in the ReportDesign.initialize method creates a file on your hard drive and adds one line to the file.
importPackage( Packages.java.io );
fos = new java.io.FileOutputStream( "c:\\BIRTlogFile.txt" );
printWriter = new java.io.PrintWriter( fos );
printWriter.println( "ReportDesign.initialize" );

For every method that you want to track, provide a single statement generating a line of output to your log file, as shown in the following statement:
printWriter.println( "Table.onRow" );

The following statement in the ReportDesign.afterFactory method closes the file.
printWriter.close( );


Re: RTC Version 4.05 [message #1591671 is a reply to message #1591460] Thu, 29 January 2015 12:25 Go to previous message
Eclipse UserFriend
Yep. I've seen that way as well. Glad you found something to work for you. Smile
Previous Topic:Manage pagination for tables
Next Topic:Crosstab taking average of averages
Goto Forum:
  


Current Time: Sun Apr 20 13:23:10 EDT 2025

Powered by FUDForum. Page generated in 0.04252 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top