Debug or Run [message #328522] |
Tue, 27 May 2008 02:37  |
Eclipse User |
|
|
|
Hi All,
I am writing a Set of Eclipse plug-ins. To test these plug-ins I created
of Course a new Eclipse Application launch configuration.
I just want to now if the PDE perspective provides me a way to know when
an Eclipse application is launched whether in Debur OR Run mode ?
In fact I often launch my application and sometimes in run mode and other
times in debug mode. After the application has been launched I decide to
put a breakpoints somewhere and to plya with my plugins in order to reach
this breakpoint. My breakpoint is not reached !!! => I was thinking that
my code was never called but in fact the application was launch in run
mode ;o) and it's difficult to reach breakpoints in run mode !!!
Switching to the debug perspective allows me to know if the apps is in
debug mode but it's quite boring ... Maybe the console view can give me
this info but I don't know where .... ???
Regards,
Manu
|
|
|
|
Re: Debug or Run [message #328607 is a reply to message #328522] |
Wed, 28 May 2008 08:38  |
Eclipse User |
|
|
|
It's pretty easy to tell that a Java application is in debug mode using
the Debug view. You only see the individual threads when you're in debug
mode.
You could try making a conditional breakpoint (make the breakpoint and
then right-click on it). Make the condition do something like:
System.out.println("I'm debugging!"); false
When the debugger encounters the breakpoint, it runs the code to decide
if it should actually break or not.
HTH,
Wayne
On Tue, 2008-05-27 at 06:37 +0000, Manuel Selva wrote:
> Hi All,
>
> I am writing a Set of Eclipse plug-ins. To test these plug-ins I created
> of Course a new Eclipse Application launch configuration.
>
> I just want to now if the PDE perspective provides me a way to know when
> an Eclipse application is launched whether in Debur OR Run mode ?
>
> In fact I often launch my application and sometimes in run mode and other
> times in debug mode. After the application has been launched I decide to
> put a breakpoints somewhere and to plya with my plugins in order to reach
> this breakpoint. My breakpoint is not reached !!! => I was thinking that
> my code was never called but in fact the application was launch in run
> mode ;o) and it's difficult to reach breakpoints in run mode !!!
>
> Switching to the debug perspective allows me to know if the apps is in
> debug mode but it's quite boring ... Maybe the console view can give me
> this info but I don't know where .... ???
>
> Regards,
>
> Manu
>
|
|
|
Powered by
FUDForum. Page generated in 0.06965 seconds