So I'm trying to map the IL code of a simple method back to source code.
But it seems to be missing SequencePoints. For example, I have this method:
public static void TestMethod() {
> for(var i = 0;i < 10;i++) {
> Console.WriteLine(i);
> }
> }
But when doing a dump of all SequencePoints for that method, it gives me:
10 -> IL_0000: ldc.i4.0
11 -> IL_0007: ldloc.0
10 -> IL_000d: ldloc.0
13 -> IL_0019: ret
where the first line in the method corresponds to line 9 in the .cs file.
Is there something I'm missing, or are there indeed a lack of
SequencePoints? Any compiler setting I have to use to generate more? E.g
I'd want to map the call back to source code. I'm using Mono as compiler on
Ubuntu 64 bit.
--
--
--
mono-cecil
---
You received this message because you are subscribed to the Google Groups
"mono-cecil" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.