JDIDebugModel and Creating Invisible Breakpoints [message #157348] |
Wed, 05 May 2004 12:40  |
Eclipse User |
|
|
|
Hello,
I'm trying to create invisible breakpoints (i.e. breakpoints that
are not registered to the breakpointmanager) but somehow I'm not
able to receive events to my IJavaBreakpointListener from those
invisible breakpoints. I would like to record stack traces without
user seeing the breakpoints (those tiny blue balls). When I register the
breakpoint to the breakpointmanager everything works fine and I get
the events.
I register the breakpoint with following code:
JDIDebugModel.createLineBreakpoint(resource, typeName, line, -1, -1, 0,
false, null);
And I launch the program with following code:
ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
ILaunchConfigurationType type
=manager.getLaunchConfigurationType(IJavaLaunchConfiguration Constants.ID_JAVA_APPLICATION);
ILaunchConfigurationWorkingCopy wc = type.newInstance(null, "SampleConfig");
wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJE CT_NAME,
"Profiled Program");
wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_ TYPE_NAME,
"Profileable");
ILaunchConfiguration config = wc.doSave();
ILaunch launch = config.launch(ILaunchManager.DEBUG_MODE, null);
Best regards,
- Sami
|
|
|
Re: JDIDebugModel and Creating Invisible Breakpoints [message #159099 is a reply to message #157348] |
Mon, 17 May 2004 11:05  |
Eclipse User |
|
|
|
Unregistered breakpoints are not added to debug targets automatically. You
must add them yourself. Debug targets only add registered breakpoints
automatically.
Darin
"Sami Lakka" <sami.lakka@tut.fi> wrote in message
news:c7b566$jjf$1@eclipse.org...
> Hello,
>
>
> I'm trying to create invisible breakpoints (i.e. breakpoints that
> are not registered to the breakpointmanager) but somehow I'm not
> able to receive events to my IJavaBreakpointListener from those
> invisible breakpoints. I would like to record stack traces without
> user seeing the breakpoints (those tiny blue balls). When I register the
> breakpoint to the breakpointmanager everything works fine and I get
> the events.
>
> I register the breakpoint with following code:
> JDIDebugModel.createLineBreakpoint(resource, typeName, line, -1, -1, 0,
> false, null);
>
>
>
> And I launch the program with following code:
>
> ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
> ILaunchConfigurationType type
>
=manager.getLaunchConfigurationType(IJavaLaunchConfiguration Constants.ID_JAV
A_APPLICATION);
> ILaunchConfigurationWorkingCopy wc = type.newInstance(null,
"SampleConfig");
>
> wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_PROJE CT_NAME,
> "Profiled Program");
> wc.setAttribute(IJavaLaunchConfigurationConstants.ATTR_MAIN_ TYPE_NAME,
> "Profileable");
> ILaunchConfiguration config = wc.doSave();
> ILaunch launch = config.launch(ILaunchManager.DEBUG_MODE, null);
>
>
>
> Best regards,
> - Sami
|
|
|
Powered by
FUDForum. Page generated in 0.02730 seconds