Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » JDIDebugModel and Creating Invisible Breakpoints
JDIDebugModel and Creating Invisible Breakpoints [message #157348] Wed, 05 May 2004 16:40 Go to next message
Sami Lakka is currently offline Sami LakkaFriend
Messages: 47
Registered: July 2009
Member
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 15:05 Go to previous message
Darin Wright is currently offline Darin WrightFriend
Messages: 454
Registered: July 2009
Senior Member
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
Previous Topic:Debugger is fine but steps are not visible
Next Topic:assert-try-finally-debugger interaction, stops in finally, not at assert
Goto Forum:
  


Current Time: Mon Jul 22 22:26:35 GMT 2024

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

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

Back to the top