Making your .NET language step correctly in the debugger

前端 未结 2 1753
再見小時候
再見小時候 2021-01-29 23:23

Firstly, I apologize for the length of this question.

I am the author of IronScheme. Recently I have been working hard on emitting decent debug info, so that I can use

2条回答
  •  醉梦人生
    2021-01-29 23:49

    I am an engineer on the SharpDevelop Debugger team :-)

    Did you solve the problem?

    Did you try to debug it in SharpDevelop? If there is a bug in .NET, I wonder if we need to implement some workaround. I am not aware of this issue.

    Did you try to debug it in ILSpy? Especially without debug symbols. It would debug C# code, but it would tell us if the IL instructions are nicely debugable. (Mind that ILSpy debugger is beta though)

    Quick notes on the original IL code:

    • .line 19,19 : 6,15 '' occurs twice?
    • .line 20,20 : 7,14 '' does not start on implicit sequence point (stack is not empty). I am worried
    • .line 20,20 : 7,14 '' includes the code for "car x" (good) as well as "#f nooo x" (bad?)
    • regarding the nop after ret. What about stloc, ldloc, ret? I think C# uses this trick to make ret a distinct sequence point.

    David

提交回复
热议问题