我在 QT 4.8.1 和 QT library 4.8.6 下使用 Visual Studios 2008。对于调试,我使用 Visual Studios 2008 附带的微软工具 CDB。
在发布版(ctrl + R)中运行我的程序时,一切都很好。当我尝试午餐调试 (F5) 时,程序会在开始调试汇编代码之前停止。
0x77cc0f6f <+ 3866> jne ntdll!LdrVerifyImageMatchesChecksum+0xf33 (77cc0f88)
0x77cc0f71 <+ 3868> mov dword ptr [ebp-4],ebx
0x77cc0f74 <+ 3871> int 3
0x77cc0f75 <+ 3872> mov dword ptr [ebp-4],esi <<<(Stops here)
0x77cc0f78 <+ 3875> jmp ntdll!LdrVerifyImageMatchesChecksum+0xf33 (77cc0f88)
0x77cc0f7a <+ 3877> xor eax,eax
0x77cc0f7c <+ 3879> inc eax
0x77cc0f7d <+ 3880> ret
0x77cc0f7e <+ 3881> mov esp,dword ptr [ebp-18h]
0x77cc0f81 <+ 3884> mov dword ptr [ebp-4],0FFFFFFFEh
0x77cc0f88 <+ 3891> call ntdll!memcpy+0xbc61 (77c4dfc1)