Re: Trace file and line mapping for debugging

138 views
Skip to first unread message

Sebastian Zarnekow

unread,
Apr 24, 2013, 10:26:06 AM4/24/13
to xtend...@googlegroups.com
Hi,

IntelliJ support for Xtend would be great!

You may want to look at org.eclipse.xtext.generator.trace.SmapSupport to see how the fine grained trace regions can be converted to line number mappings.

Best regards,
Sebastian


On 24.04.2013, at 16:12, vistall...@gmail.com wrote:

Hi Xtend team.

I work on Xtend plugin for IntelliJ IDEA, and wana make debugging.

I cant undestand how map 

Xtend Code 
/**
 * @author VISTALL
 */
class XtendHelloWorld
{
static def void main(java.lang.String[] arg)
{
println("10") // 10 line
println("11")
println("12")
println("13")
println("14")
}
}


Java code

/**
 * @author VISTALL
 */
import org.eclipse.xtext.xbase.lib.InputOutput;

/**
 * @author VISTALL
 */
@SuppressWarnings("all")
public class XtendHelloWorld {
  public static void main(final String[] arg) {
    InputOutput.<String>println("10");  // 12 line
    InputOutput.<String>println("11");
    InputOutput.<String>println("12");
    InputOutput.<String>println("13");
    InputOutput.<String>println("14");
  }
}


How get mapping line  10 -> 12. I read Trace file but dont find mapping (


--
You received this message because you are subscribed to the Google Groups "Xtend Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xtend-lang+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Message has been deleted

Sven Efftinge

unread,
Apr 25, 2013, 9:49:34 AM4/25/13
to xtend...@googlegroups.com
Coo!. How far is it?
Reply all
Reply to author
Forward
0 new messages