Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Debug org.eclipse.birt.report.engine.emitter.csv plugin(How to put break points in the PDE ?)
Debug org.eclipse.birt.report.engine.emitter.csv plugin [message #517479] Sun, 28 February 2010 15:38 Go to next message
Maxim Veksler is currently offline Maxim VekslerFriend
Messages: 28
Registered: July 2009
Junior Member
Hello Friends,

I've followed ch19 of Integrating & Extending BIRT, complemented by this forum post http://www.birt-exchange.org/blog/2008-10-07/using-the-csv-e mitter-with-birt-230/

This plugin works and the CSV is exported yet I am unable to put break points in the code of the plugin.

I've tried several different approaches but non of the yield the possibility of running the plugin under eclipse debugger.


How can I do this?

I would like (for example) to put breakpoint in CSVReportEmitter.startText() method.


Thank you for your help,
Maxim.
Re: Debug org.eclipse.birt.report.engine.emitter.csv plugin [message #517662 is a reply to message #517479] Mon, 01 March 2010 16:07 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Maxim,

How are you running BIRT? Is this a stand alone app or a web app?

Jason

Maxim Veksler wrote:
> Hello Friends,
>
> I've followed ch19 of Integrating & Extending BIRT, complemented by this
> forum post
> http://www.birt-exchange.org/blog/2008-10-07/using-the-csv-e mitter-with-birt-230/
>
>
> This plugin works and the CSV is exported yet I am unable to put break
> points in the code of the plugin.
>
> I've tried several different approaches but non of the yield the
> possibility of running the plugin under eclipse debugger.
>
>
> How can I do this?
>
> I would like (for example) to put breakpoint in
> CSVReportEmitter.startText() method.
>
>
> Thank you for your help,
> Maxim.
Re: Debug org.eclipse.birt.report.engine.emitter.csv plugin [message #517680 is a reply to message #517662] Mon, 01 March 2010 16:46 Go to previous message
Maxim Veksler is currently offline Maxim VekslerFriend
Messages: 28
Registered: July 2009
Junior Member
Hello Jason,

I'm using the example application ExecuteCSVReport which is a standalone.

I've copied the jar to my RuntimeEngine plugins folder as was instructed by the book / blog post.


Though I think something is missing here, i'll explain: Should the csv emitter plugin be configured as a dependency? I.E. instead of coping the jar to the plugins folder, I should be starting BIRT as OSGi application from eclipse PDE and setting the new project (org.eclipse.birt.report.engine.emitter.csv) as a dependency of the BIRT project ??

Isn't the above the only sane way for eclipse to do debugging on the plugin (no remote debugging and stuff...).


Speaking more generally, our BIRT installation does run inside a webapp (integrated, not the eclipse viewer version) so a tip on remote debugging will help as well.


Thank you for your attention,
Maxim.
Re: Debug org.eclipse.birt.report.engine.emitter.csv plugin [message #517711 is a reply to message #517680] Mon, 01 March 2010 14:18 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Maixm,

What I did to debug it:

1 - create a new workspace.
2 - import both projects.
3 - set birt home in the ExecuteCSVReport project. Also changed its
build path to add the birt runtime libs.
Changed this code:

if (format.equals("CSV"))
{
//CSVRenderOption csvOptions = new CSVRenderOption();
RenderOption csvOptions = new RenderOption();

csvOptions.setOutputFormat( format );
csvOptions.setOutputFileName("reports/csvReport.csv");
task.setRenderOption( csvOptions );
task.run();
}

4 - in the csv emitter project - open the manifest editor and export the
plugin. Put the plugin in your birt-runtime plugins directory. Open
the source and put in your break point.

5 - create a new debug configuration that points to the ExecuteReport
class. Select the source tab and add the csv emitter plugin to it.

6 - run and debug.

To remote debug:

1 - start tomcat with the following option in the catalina.bat

set JAVA_OPTS=%JAVA_OPTS% -Xdebug
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend= n
-XX:MaxPermSize=256m
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogMa nager
-Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties "

2 - In Eclipse debug configuration choose remote java application and
enter localhost and port 8000 add appropriate source projects in the
source tab.

3 - apply and run. Execute remote app and the debugger should stop
proecessing on your breakpoint.

Jason

Maxim Veksler wrote:
> Hello Jason,
>
> I'm using the example application ExecuteCSVReport which is a standalone.
>
> I've copied the jar to my RuntimeEngine plugins folder as was instructed
> by the book / blog post.
>
>
> Though I think something is missing here, i'll explain: Should the csv
> emitter plugin be configured as a dependency? I.E. instead of coping the
> jar to the plugins folder, I should be starting BIRT as OSGi application
> from eclipse PDE and setting the new project
> (org.eclipse.birt.report.engine.emitter.csv) as a dependency of the BIRT
> project ??
> Isn't the above the only sane way for eclipse to do debugging on the
> plugin (no remote debugging and stuff...).
>
>
> Speaking more generally, our BIRT installation does run inside a webapp
> (integrated, not the eclipse viewer version) so a tip on remote
> debugging will help as well.
>
>
> Thank you for your attention,
> Maxim.
Previous Topic:Storing data in database directly from the report
Next Topic:error in soap response editor tab
Goto Forum:
  


Current Time: Thu Apr 25 07:47:06 GMT 2024

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

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

Back to the top