且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

C#应用程序中的非托管调用堆栈

更新时间:2022-12-16 09:18:40

是的.您需要在混合模式"下调试应用程序.右键单击该项目,选择调试"选项卡,然后选中启用非托管代码调试".您将看到托管框架和本机框架.

Yes it is. You need to debug your application in 'Mixed-mode'. Right click on the project, select the 'Debug' tab and check 'Enable unmanaged code debugging'. You will see managed and native frames.

编辑:正如ChrisO所提到的,没有MS符号会使本地调试变得很奇怪.将以下内容添加到Windows符号的符号路径中:http://msdl.microsoft.com/download/symbols

Edit: As ChrisO mentions not having MS symbols can make native debugging weird. Add the following to your symbols path for Windows symbols: http://msdl.microsoft.com/download/symbols