“[Lightweight Function]” in the call stack

后端 未结 3 1460
你的背包
你的背包 2021-02-12 13:32

I\'m debugging a program (VS2008), and I was stepping through lines of code. I came across one line where a delegate function was being called, and I tried to step into it. Howe

3条回答
  •  清酒与你
    2021-02-12 14:10

    I believe a lightweight function refers to a DynamicMethod, i.e. one that is emitted at runtime, used, and then unloaded.

    This blog post is related to Iron Python, but the information should be good for any .NET project: Viewing Emitted IL. The author shows you how to use a lower level debugger (windbg.exe) to see these "lightweight functions."

提交回复
热议问题