简体   繁体   English

C ++应用程序仅在使用本地Windows调试器时运行,而不在哪个exe文件中运行

[英]C++ application run only when use local windows debugger, not which exe file

When I use Local Windows Debugger in Visual Studio 2017 my application runs and works, but when I try run my .exe file I get an error like: 当我在Visual Studio 2017中使用本地Windows调试器时,我的应用程序将运行并运行,但是当我尝试运行.exe文件时,出现如下错误:

Microsoft Visual C++ Runtime Library Microsoft Visual C ++运行时库
Debug Error! 调试错误!
abort() has been called 已调用abort()
(Press Retry to debug the application". (按“重试”以调试应用程序”。

When I click Retry button my computer hangs. 当我单击重试按钮时,我的计算机挂起。

I tried changing the SDK version and Platform Toolset but that was unsuccessful. 我尝试更改SDK版本和Platform Toolset,但未成功。

I use c++ language in Console. 我在控制台中使用c++语言。 This is quite big project which I got from another developer. 这是我从另一个开发人员那里获得的很大的项目。 How can I repair it? 我该如何修理?

Be sure to clean the solution and recompile it. 确保清洁溶液并重新编译。

If you compile it with debug mode you can attach the visual studio debugger to the external running application. 如果使用调试模式进行编译,则可以将Visual Studio调试器附加到外部运行的应用程序。 Docs 文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM