Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在调试混合模式(托管和非托管)应用程序的问题。
实际问题在非托管代码中。
我已将 SOS dll 加载到 Windebugger 中。但是因为我已经加载了 SOS dll,所以它只向我显示了托管模式的调用堆栈。我如何也看到非托管代码的调用堆栈?
SOS 命令!dumpstack将生成包含托管和非托管代码的完整堆栈跟踪。由于这是非托管代码中的问题,因此通常的调试器堆栈跟踪命令(k和变体)也可能有用。
!dumpstack
k
!sosex.mk 将以易于阅读的方式提供完整的堆栈跟踪。