【发布时间】:2019-11-02 02:11:59
【问题描述】:
VS2017 在遇到assert() 失败时突然不显示 Abort, Ignore, Retry 提示。它所做的只是输出到output 窗口并退出程序,所以我无法调试它。
我进行了修复安装,没有改变任何东西。使用调试版本和库启用 JIT(本机代码)。它一直运行良好。
这是我得到的错误:
Press Retry to debug the application - JIT must be enabled)Assertion failed!
Program: C:\Test\x64\Debug\Test.exe
File: C:\Test\Test\owner-draw-buttons.cpp
Line: 144
Expression: 0
For information on how your program can cause an assertion failure, see the
Visual C++ documentation on asserts (Press Retry to debug the application - JIT
must be enabled)Debug Error! Program: C:\Test\x64\Debug\Test.exe abort() has
been called (Press Retry to debug the application) The thread 0x3524 has exited
with code 3 (0x3). The program '[10772] Test.exe' has exited with code 3 (0x3).
关于如何解决的任何想法?
TIA!!
【问题讨论】:
-
欢迎来到 SO!请上传您遇到的错误并提供更多详细信息:您在做什么?你得到哪个确切的错误?你的设置是哪一个?
-
(按重试调试应用程序 - 必须启用 JIT)断言失败!程序:C:\Test\x64\Debug\Test.exe 文件:C:\Test\Test\owner-draw-buttons.cpp 行:144 表达式:0 有关您的程序如何导致断言失败的信息,请参阅关于断言的 Visual C++ 文档(按重试调试应用程序 - 必须启用 JIT)调试错误!程序:C:\Test\x64\Debug\Test.exe abort() 已被调用(按重试调试应用程序)线程 0x3524 已退出代码 3 (0x3)。程序“[10772] Test.exe”已退出,代码为 3 (0x3)。
标签: visual-studio-2017 visual-studio-debugging