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

I have created my breakpoints before i launch. I ensure that all breakpoints are registered with the breakpoint manager.

Than i launch my program. But i think a breakpoint is only installed, if the class where i have set the breakpoint is loaded in the debug target. Is that's right?

So if i set the breakpoint (before launch) i can see this in the java editor of the corresponding class. If i launch, i see that the breakpoint is going installed. Also i verify this in the java editor. The breakpoint icons becomes checked.

Darin Wright schrieb:
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