Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Breakpoint in xtext dsl editor(Breakpoint in xtext dsl editor)
Breakpoint in xtext dsl editor [message #1786076] Wed, 25 April 2018 08:40 Go to next message
Virag Purnam is currently offline Virag PurnamFriend
Messages: 59
Registered: June 2014
Member
Hello,

How can I set breakpoint in xtext dsl editor?
I saw a post that it works with Xtext2.13.
But is it possible to do it in lower version?
By adding below extension in plugin.xml, I am able to get breakpoint option in pop up menu.
But it does not set breakpoint in editor and I dont see it in breakpoint view as well.

<extension point="org.eclipse.ui.popupMenus">
        <viewerContribution
            targetID="org.xtext.example.mydsl.MyDsl.RulerContext"
            id="org.xtext.example.mydsl.MyDsl.RulerPopupActions">
            <action
                label="Toggle Breakpoint"
                class="org.xtext.example.mydsl.ui.MyDslExecutableExtensionFactory:org.eclipse.debug.ui.actions.RulerToggleBreakpointActionDelegate"
                menubarPath="debug"
                id="org.xtext.example.mydsl.MyDsl.rulerContextMenu.toggleBreakpointAction">
            </action>
            <action
                label="Not used"
                class="org.xtext.example.mydsl.ui.MyDslExecutableExtensionFactory:org.eclipse.debug.ui.actions.RulerEnableDisableBreakpointActionDelegate"
                menubarPath="debug"
                id="org.xtext.example.mydsl.MyDsl.rulerContextMenu.enableDisableBreakpointAction">
            </action>
        </viewerContribution>
    </extension>


Can I achieve this with older version of Xtext ?
I just want to add break points in editor. Debugging logic will be written later.


Thanks and regards,
Virag Purnam
Re: Breakpoint in xtext dsl editor [message #1786077 is a reply to message #1786076] Wed, 25 April 2018 08:41 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 12243
Registered: July 2009
Senior Member
did you read into my blog post on this topic https://blogs.itemis.com/en/debugging-dsls-in-xtext-and-eclipse

Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Breakpoint in xtext dsl editor [message #1786078 is a reply to message #1786077] Wed, 25 April 2018 08:56 Go to previous messageGo to next message
Virag Purnam is currently offline Virag PurnamFriend
Messages: 59
Registered: June 2014
Member
Yes. I saw that.
But is it possible with Xtext-2.12 ?

Thanks and regards,
Virag Purnam
Re: Breakpoint in xtext dsl editor [message #1786079 is a reply to message #1786078] Wed, 25 April 2018 09:09 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 12243
Registered: July 2009
Senior Member
yes and no, there where a bunch of bugs fixed between the versions... so i dont know which you will be affected by.
at lease the 2.12 version creates all regions with not for debugging so that might be the biggest issue.
so i dont recommend you to do that.
but i as well cannot tell you what you need to do to get this running without that coe


Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:How to autowrap comments
Next Topic:Created DSL plug-in don't work on a new Eclipse project
Goto Forum:
  


Current Time: Tue Sep 25 16:49:44 GMT 2018

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

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

Back to the top