[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Re: Breakpoints not installed

Create your breakpoints before you launch.

Darin

"Karsten Lehmann" <KarstenLehmann@xxxxxx> wrote in message 
news:d7mmbk$1ol$1@xxxxxxxxxxxxxxxxxxx
> Hello
>
> I have written a plugin for eclipse that launch a java program 
> programmiticly. This java program i want to debug with the eclipse on 
> board resources.
>
> I use the DebugUITools to launch my java program.
> getDisplay().asyncExec(new Runnable() {
>  public void run() {
>    DebugUITools.launch(configuration, ILaunchManager.DEBUG_MODE);
>  }
> });
>
> At one class in my started program i have set a java line breakpoint with 
> the JDIDebugModel. I can see the breakpoint in my class, but sometimes the 
> program stops not at the breakpoint position. It seems that if i launch 
> the program the breakpoint will not installed fast enough. Then the 
> program runs without to stop at the breakpoint line.
>
> What can i do, that when i launch the program first all breakpoints will 
> be installed? I have to ensure that my breakpoint will be hit.
>
> FYI:
> I use eclipse 3.0.2