Step through the “managed to native transition” in Visual Studio?

前端 未结 2 800
迷失自我
迷失自我 2021-02-07 12:49

While trying to answer this question I decided I need to step through the marshalling process by hand, in the debugger view.

Unfortunately, Visual Studio seems to jump r

2条回答
  •  北荒
    北荒 (楼主)
    2021-02-07 13:28

    In Visual Studio, you cannot do that, i.e. there is no way to switch VS debugger into a mode to see what is going on during Managed to Native transition.

    You could try WinDbg + SOS/SOSEX instead as WinDBG does not hide these kinds of details from you. However, that part is either .NET or Windows internal abstraction, so even if you could see it, you might not get much, as to see what's actually going on there (besides the assembly), you will need private symbols for mscorlib, mscoreei, or clr dlls (pdb files).

提交回复
热议问题