Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo 3] Debugging Templates([Acceleo 3] Debugging Templates)
[Acceleo 3] Debugging Templates [message #653855] Fri, 11 February 2011 15:07 Go to next message
Sylvain Dudoit is currently offline Sylvain DudoitFriend
Messages: 5
Registered: February 2011
Junior Member
Hi,

I'm using Eclipse 3.5.2 with Acceleo 3.0.1 and I tried 3.1M5 also.

I embedded an Acceleo generator in my RCP application successfully.
This application contains my meta-model bundle separated from my generator bundle.
The generation works fine !

My template is :

[comment encoding = UTF-8 /]
[module Converters('/mymetamodelbundle/model/architecture.ecore')/]

[template public generateAll(e : Architecture)]
	
	[comment @main /]
	[file ('Converters.java', false, 'UTF-8')]
		
	[for (it : Member | e.members)]
		
		[it.eClass().name/] 
		
	[/for]
	
	[/file]
	
[/template]


My problem : I put a breakpoint on line [for ...] inside the template editor and the debugger never stops here during the generation process Sad while it stops correctly in Java source code.

Thanks in advance for your reply,
Sylvain Dudoit

Re: [Acceleo 3] Debugging Templates [message #654407 is a reply to message #653855] Tue, 15 February 2011 15:48 Go to previous messageGo to next message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 454
Registered: April 2010
Location: Nantes (France)
Senior Member

Hi,

I tried to reproduce your issue but it worked for me, I will open a bug in order to track the problems with the debugger.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=337224

Stephane Begaudeau, Obeo

--
Twitter: @sbegaudeau
Acceleo wiki: http://wiki.eclipse.org/Acceleo
Blogs: http://stephanebegaudeau.tumblr.com & http://sbegaudeau.tumblr.com
Re: [Acceleo 3] Debugging Templates [FIXED] [message #654610 is a reply to message #654407] Wed, 16 February 2011 13:39 Go to previous messageGo to next message
Sylvain Dudoit is currently offline Sylvain DudoitFriend
Messages: 5
Registered: February 2011
Junior Member
Hello Stéphane,

Thank you for your support.

I found my problem. My Eclipse configuration was the problem.
The problem was an old version of EEF (0.8?) installed. I had a message in the ErrorLog.
Oops .. I deleted the message before pasting it here Confused

After uninstalling it, I can enter templates with "Acceleo Plug-in Application".

BUT, is it possible to debug templates (entering them with breakpoints) when the generation
is launched from an embedded RCP application ?

In this case, we can't launch the RCP application with "Acceleo Plug-in Application" Rolling Eyes

Regards,
Sylvain
Re: [Acceleo 3] Debugging Templates [message #654816 is a reply to message #653855] Thu, 17 February 2011 09:49 Go to previous message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 454
Registered: April 2010
Location: Nantes (France)
Senior Member

Hi Sylvain,

The Acceleo debugger is only available in Acceleo Plug-in Application mode otherwise there is only the Java one.

Anyway, if you want to have fun and if you want to try to activate it programmaticaly, the code responsible is here :
" org.eclipse.acceleo.ide.ui.launching.strategy.AcceleoPluginL aunchingStrategy " line 70 to 80.

Stéphane Bégaudeau, Obeo

--
Twitter: @sbegaudeau
Acceleo wiki: http://wiki.eclipse.org/Acceleo
Blogs: http://stephanebegaudeau.tumblr.com & http://sbegaudeau.tumblr.com
Previous Topic:DDL templates
Next Topic:[Acceleo] eliminate warnings
Goto Forum:
  


Current Time: Wed Apr 21 04:56:33 GMT 2021

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

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

Back to the top