[Mono-devel-list] Patch for generating debug info in System.Reflection.Emit

Rodrigo B. de Oliveira rodrigobamboo at gmail.com
Thu Jul 28 17:46:33 EDT 2005


On 7/28/05, Rodrigo B. de Oliveira <rodrigobamboo at gmail.com> wrote:
> ...
> I'm getting off-by-one errors only with raise/throw statements:
> 

The behavior is actually a little more complex but still predictable.
The stack trace entry for the raise line is always the line of the
next statement in the same method:

<src name="other.boo">
def foo():
     raise "foo"


     return 1
 
 def bar():
     foo()
 
 bar()
</src>

I get then:
 
Unhandled Exception: System.ApplicationException: foo
 in [0x0000a] (at Other.boo:5) OtherModule:foo ()
 in [0x00000] (at Other.boo:8) OtherModule:bar ()
 in [0x00000] (at Other.boo:10) OtherModule:Main (System.String[] argv)
 
Any ideas?
bamboo



More information about the Mono-devel-list mailing list