Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Debugging DSL Instances
Debugging DSL Instances [message #1776715] Mon, 20 November 2017 17:25 Go to next message
Steve Hostettler is currently offline Steve HostettlerFriend
Messages: 79
Registered: June 2016
Member
Hello,

I am trying to debug a DSL instance. I have read on several topics that it should be possible to set a breakpoint in the DSL file and it will put the corresponding breakpoint in the transpiled Java.

Right now I cannot set a breakpoint in the DSL instance. The generated plugins work (code completion, scoping, ...) but there is no way of putting a breakpoint.

Similarly I cannot navigate from the DSL code to the generated Java Code.

Could someone point me to what is missing?


Many thanks in advance

[Updated on: Mon, 20 November 2017 17:26]

Report message to a moderator

Re: Debugging DSL Instances [message #1776720 is a reply to message #1776715] Mon, 20 November 2017 17:59 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 12041
Registered: July 2009
Senior Member
Do you use xbase? Do you use debug trace generator?

Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Debugging DSL Instances [message #1776723 is a reply to message #1776720] Mon, 20 November 2017 19:44 Go to previous messageGo to next message
Steve Hostettler is currently offline Steve HostettlerFriend
Messages: 79
Registered: June 2016
Member
Hello thanks for you help.
I use Xtend (which is from my understanding an extension from Xbase) to generate the Java Code. I am looking for more information about debug trace generator.
If I cannot enable debugging I would like at least be able to navigate from dsl code to java code.
Re: Debugging DSL Instances [message #1776724 is a reply to message #1776723] Mon, 20 November 2017 19:48 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 12041
Registered: July 2009
Senior Member
No I mean you dsl. Debuggability you will get other only for xbase dsls
Same for go to generated code

If you don't use xbase you need to implement that yourself


Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Debugging DSL Instances [message #1776725 is a reply to message #1776724] Mon, 20 November 2017 19:49 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 12041
Registered: July 2009
Senior Member
Ps have a look at the domainmodel example

Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Debugging DSL Instances [message #1776726 is a reply to message #1776725] Mon, 20 November 2017 19:51 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 12041
Registered: July 2009
Senior Member
For tracing have a look at https://typefox.io/generate-traced-code-with-xtext and the 2.13 release notes

You might need to implement some gluecody yourself
(Copy and paste from xbase)
Cannot give you a complete list of pointers


Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Debugging DSL Instances [message #1776731 is a reply to message #1776726] Mon, 20 November 2017 20:15 Go to previous message
Steve Hostettler is currently offline Steve HostettlerFriend
Messages: 79
Registered: June 2016
Member
So no it's not a Xbase DSL, the syntax is completly different and hence xbase was not a good starting point.
Thanks for your help I will start from the link.

[Updated on: Mon, 20 November 2017 20:16]

Report message to a moderator

Previous Topic:Xtext web editor is disabled
Next Topic:Xtext web editor is disabled
Goto Forum:
  


Current Time: Fri Jun 22 17:34:46 GMT 2018

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

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

Back to the top