|
|
|
Re: Debug org.eclipse.birt.report.engine.emitter.csv plugin [message #517711 is a reply to message #517680] |
Mon, 01 March 2010 14:18 |
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.02998 seconds