且构网

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

如何调试来自本机代码的AccessViolationException

更新时间:2023-12-03 14:46:10

项目+属性的调试选项卡上,勾选启用非托管代码调试。这样做仍然不容易,但是至少您可以在炸弹爆炸时查看未管理的堆栈帧。确保您已经获得了Qt代码的.pdb文件。

Project + Properties, Debug tab, tick "Enable unmanaged code debugging". This still won't make it easy, but at least you can look at the unmanaged stack frames when it bombs. Make sure you've got the .pdb files for the Qt code.