Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Debug a simple file
Debug a simple file [message #491883] Fri, 16 October 2009 11:43 Go to next message
StefanK  is currently offline StefanK Friend
Messages: 25
Registered: July 2009
Junior Member
Hello everybody,

we are currently working on a eclipse plugin text editor. One can create a new .a4l file, which opens the plugin editor. This works just fine. Now we want to add a debugging feature, which means the user needs to be able to set a breakpoint in the .a4l file.
My question is: How can I add the toggle-breakpoint functionality to the a4l file?

I´m very new at this topic, so any information would be great.

Best regards
StefanK
Re: Debug a simple file [message #491919 is a reply to message #491883] Fri, 16 October 2009 14:43 Go to previous messageGo to next message
StefanK  is currently offline StefanK Friend
Messages: 25
Registered: July 2009
Junior Member
Hi there,

I found a pretty good tutorial about this topic:

http://www.eclipse.org/articles/Article-Debugger/how-to.html

Unfortunately I can´t set any breakpoints. The plugin.xml:

<extension point="org.eclipse.debug.core.breakpoints">
<breakpoint
markerType="a4ltesteditor.debug.lineBreakpoint.marker"
class="a4ltesteditor.debug.A4lLineBreakpoint"
id="a4ltesteditor.debug.lineBreakpoint">
</breakpoint>
</extension>

<extension
id="a4ltesteditor.debug.lineBreakpoint.marker"
point="org.eclipse.core.resources.markers">
<super
type="org.eclipse.debug.core.lineBreakpointMarker">
</super>
<persistent
value="true">
</persistent>
</extension>

<extension
point="org.eclipse.core.runtime.adapters">
<factory
class="a4ltesteditor.debug.A4lBreakpointAdapterFactory"
adaptableType="org.eclipse.ui.texteditor.ITextEditor">
<adapter
type="org.eclipse.debug.ui.actions.IToggleBreakpointsTarget ">
</adapter>
</factory>
</extension>

I guess somethings wrong within the plugin.xml, because if I start the editor in debug mode and try to set a breakpoint, nothing happens.

Am I missing a important part?

Best regards
StefanK
Re: Debug a simple file [message #492220 is a reply to message #491919] Mon, 19 October 2009 14:00 Go to previous message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
StefanK wrote:
> I guess somethings wrong within the plugin.xml, because if I start the
> editor in debug mode and try to set a breakpoint, nothing happens.
> Am I missing a important part?

You might want to compare against the JDT/Debug's plugin.xml (since it
uses this same mechanism).

You should also be sure that the class names you've specified are
correct; I've found it very helpful to set "Preferences -> Plug-in
Development Environment -> Compilers -> Regerences -> References to
non-existent classes" and "References to non-existance resources" to
cause an error rather than a warning.

Brian.
Previous Topic:IProject instanceof MyProject
Next Topic:Best way to not show the select ui preference pages from contributing plugins to RCP application
Goto Forum:
  


Current Time: Tue Mar 19 10:16:40 GMT 2024

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

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

Back to the top