Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Debug or Run
Debug or Run [message #328522] Tue, 27 May 2008 02:37 Go to next message
Eclipse UserFriend
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 #328604 is a reply to message #328522] Wed, 28 May 2008 02:04 Go to previous messageGo to next message
Eclipse UserFriend
Any ideas ?
Re: Debug or Run [message #328607 is a reply to message #328522] Wed, 28 May 2008 08:38 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:Use of org.eclipse.compare to show two GEF editors
Next Topic:Retarget Actions
Goto Forum:
  


Current Time: Thu May 01 05:14:54 EDT 2025

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

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

Back to the top