Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » compiler debug option on 3.4.2
compiler debug option on 3.4.2 [message #58343] Fri, 24 April 2009 16:52 Go to next message
Laurent Dubois is currently offline Laurent DuboisFriend
Messages: 16
Registered: July 2009
Junior Member
hello,

Trying to get the debug info in our application code, using the
compilerArgs=-g option in our build.properties file
Problem is that some of our plugins in our application do have the debug
info (source and line numbers), but some others don't...
I tried looking in each plugin folder at build time, to get some more info.
each one has a build.xml file but they all look the same.
The content of that file is actually weird. The compilerArgs and other
properties show with the default values (<property name="compilerArg"
value=""/>) for both the plugins that end up with the debug info, and the
ones that don't.
Also, each plugin folder has a javaCompiler...args file created (which
seems to indicate the debug option is passed in properly...)
Any way to troubleshoot this and figure why some plugins are not compiled
with the debug option?
This issue is preventing us from doing proper remote debugging. we can set
break point in the plugin's code with the debug info, but not the other
ones....

Thanks,
Re: compiler debug option on 3.4.2 [message #58366 is a reply to message #58343] Fri, 24 April 2009 20:18 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
"compilerArg" is a top level build configuration property. It should be
set in the main builder's build.properties file.

There is also the "javacDebugInfo" property (whose values are "on" or
"off") which controls the debug attribute on the javac call.

Also if you set "logExtension=.xml" in the builder's build.properties
file, then the compiler should output xml files for logs, and the xml
files contain way more detail and might say something about debug info.

The top level build.properties file overrides anything you see in the
build.xml since ant properties don't change.

This might also be interesting to you:
http://aniefer.blogspot.com/2008/09/custom-compiler-argument s-in-pdebuild.html

-Andrew

Laurent Dubois wrote:
> hello,
>
> Trying to get the debug info in our application code, using the
> compilerArgs=-g option in our build.properties file
> Problem is that some of our plugins in our application do have the debug
> info (source and line numbers), but some others don't...
> I tried looking in each plugin folder at build time, to get some more info.
> each one has a build.xml file but they all look the same.
> The content of that file is actually weird. The compilerArgs and other
> properties show with the default values (<property name="compilerArg"
> value=""/>) for both the plugins that end up with the debug info, and
> the ones that don't.
> Also, each plugin folder has a javaCompiler...args file created (which
> seems to indicate the debug option is passed in properly...) Any way to
> troubleshoot this and figure why some plugins are not compiled with the
> debug option?
> This issue is preventing us from doing proper remote debugging. we can
> set break point in the plugin's code with the debug info, but not the
> other ones....
>
> Thanks,
>
Re: compiler debug option on 3.4.2 [message #58409 is a reply to message #58366] Fri, 24 April 2009 20:49 Go to previous message
Laurent Dubois is currently offline Laurent DuboisFriend
Messages: 16
Registered: July 2009
Junior Member
Thanks Andrew.
The compilerArgs is indeed set in the build.properties so that's why I was
a bit intrigued by the result...
Anyway, I managed to resolve the issue by running our build from the
command line as opposed to from the Eclipse IDE.
I still need to figure what's going on from the IDE but at least I got
something that I can use for remote debugging.
Thanks again...
Re: compiler debug option on 3.4.2 [message #596381 is a reply to message #58343] Fri, 24 April 2009 20:18 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
"compilerArg" is a top level build configuration property. It should be
set in the main builder's build.properties file.

There is also the "javacDebugInfo" property (whose values are "on" or
"off") which controls the debug attribute on the javac call.

Also if you set "logExtension=.xml" in the builder's build.properties
file, then the compiler should output xml files for logs, and the xml
files contain way more detail and might say something about debug info.

The top level build.properties file overrides anything you see in the
build.xml since ant properties don't change.

This might also be interesting to you:
http://aniefer.blogspot.com/2008/09/custom-compiler-argument s-in-pdebuild.html

-Andrew

Laurent Dubois wrote:
> hello,
>
> Trying to get the debug info in our application code, using the
> compilerArgs=-g option in our build.properties file
> Problem is that some of our plugins in our application do have the debug
> info (source and line numbers), but some others don't...
> I tried looking in each plugin folder at build time, to get some more info.
> each one has a build.xml file but they all look the same.
> The content of that file is actually weird. The compilerArgs and other
> properties show with the default values (<property name="compilerArg"
> value=""/>) for both the plugins that end up with the debug info, and
> the ones that don't.
> Also, each plugin folder has a javaCompiler...args file created (which
> seems to indicate the debug option is passed in properly...) Any way to
> troubleshoot this and figure why some plugins are not compiled with the
> debug option?
> This issue is preventing us from doing proper remote debugging. we can
> set break point in the plugin's code with the debug info, but not the
> other ones....
>
> Thanks,
>
Re: compiler debug option on 3.4.2 [message #596394 is a reply to message #58366] Fri, 24 April 2009 20:49 Go to previous message
Laurent Dubois is currently offline Laurent DuboisFriend
Messages: 16
Registered: July 2009
Junior Member
Thanks Andrew.
The compilerArgs is indeed set in the build.properties so that's why I was
a bit intrigued by the result...
Anyway, I managed to resolve the issue by running our build from the
command line as opposed to from the Eclipse IDE.
I still need to figure what's going on from the IDE but at least I got
something that I can use for remote debugging.
Thanks again...
Previous Topic:compiler debug option on 3.4.2
Next Topic:Manifest Editor for plugin.xml + folding
Goto Forum:
  


Current Time: Fri Apr 19 09:47:26 GMT 2024

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

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

Back to the top