Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Use debugger?
Use debugger? [message #1748146] Fri, 18 November 2016 22:55 Go to next message
louis andia. is currently offline louis andia.Friend
Messages: 47
Registered: November 2016
Member
Hello,

It's possible to use the eclipse debugger view with ATL?

No matter where i put them, breakpoints are never triggered. I place them with the outline viewer, skip all breakpoints is disable, i launch my transformation with debug launcher. I don't know what i'm doing wrong.

I use eclipse 4.5.2 and ATL 3.6.


Re: Use debugger? [message #1748921 is a reply to message #1748146] Wed, 30 November 2016 07:59 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 589
Registered: September 2012
Location: Belgium
Senior Member

All that looks good. One more thing: you have to manually switch to the debugger perspective to see your debug session.

Cheers,
Dennis
Re: Use debugger? [message #1748995 is a reply to message #1748921] Wed, 30 November 2016 21:23 Go to previous messageGo to next message
louis andia. is currently offline louis andia.Friend
Messages: 47
Registered: November 2016
Member
Yes I'm in the debugger view when I launch my transformation, but it finish before any breakpoints trigger.
Re: Use debugger? [message #1749029 is a reply to message #1748995] Thu, 01 December 2016 09:51 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 589
Registered: September 2012
Location: Belgium
Senior Member

I suppose you have already read https://wiki.eclipse.org/ATL/User_Guide_-_The_ATL_Tools#ATL_Debug_perspective

Please verify that the Outline elements you select as breakpoint are in fact behavioural expressions, and not some structural element, such as an OutPattern. Only the Outline elements with behaviour will correspond to ATL bytecode, and will trigger a breakpoint. If in doubt, select the element that is nested deepest.


Cheers,
Dennis
Re: Use debugger? [message #1749078 is a reply to message #1749029] Thu, 01 December 2016 15:53 Go to previous messageGo to next message
louis andia. is currently offline louis andia.Friend
Messages: 47
Registered: November 2016
Member
Yes i already read that.

I tried on many elements: MatchedRule, RuleVariableDeclaration, VariableExpr, NavigationOrAttributeCallExpr.... and nothing.
Re: Use debugger? [message #1751013 is a reply to message #1749078] Tue, 03 January 2017 16:30 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 589
Registered: September 2012
Location: Belgium
Senior Member

Can you verify that your breakpoint code is actually executed by adding a call to "debug()"?

Cheers,
Dennis
Re: Use debugger? [message #1751038 is a reply to message #1751013] Tue, 03 January 2017 20:15 Go to previous messageGo to next message
louis andia. is currently offline louis andia.Friend
Messages: 47
Registered: November 2016
Member
Yes, everything is executed and debug() prints correctly.
Re: Use debugger? [message #1751041 is a reply to message #1751038] Tue, 03 January 2017 20:36 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis WagelaarFriend
Messages: 589
Registered: September 2012
Location: Belgium
Senior Member

Ok, then I'm out of ideas... Can you export your Eclipse project as a zip file, and post it here? I can then hopefully reproduce your problem, and see what is going on.

Cheers,
Dennis
Re: Use debugger? [message #1751050 is a reply to message #1751041] Tue, 03 January 2017 21:45 Go to previous message
louis andia. is currently offline louis andia.Friend
Messages: 47
Registered: November 2016
Member
Ok, i don't know what's happened but it's look fine now...
Your last post gave me the idea to test with another transformation.
I tried on the example public2Private, saw it's worked, tried again on my transformation and now it's working.

Thanks for your help.
Previous Topic:Control Flow Graph of ATL
Next Topic:Higher-order transformation with ATL
Goto Forum:
  


Current Time: Wed Apr 24 14:25:23 GMT 2024

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

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

Back to the top