简体   繁体   English

调试在VS2012上不起作用

[英]Debugging Not working on VS2012

I have a problem with Visual Studio 2012, I have just create a windows application project, it's the default application created by VS itself, if I run the application with Ctrl + F5 (Start Without Debugging), the application running correctly. 我在Visual Studio 2012中遇到问题,我刚刚创建了一个Windows应用程序项目,它是VS本身创建的默认应用程序,如果我使用Ctrl + F5 (无需调试即可启动)运行该应用程序,则该应用程序将正确运行。 while if I start the application with F5 (Start With Debugging), The application is built successfully, but the form doesn't appear at all, In addition if I'm trying to debug any line, the debugger is not launched and breakpoints are not reachable. 如果我使用F5 (从调试开始)启动应用程序,则该应用程序已成功构建,但是该窗体根本没有出现。此外,如果我要调试任何行,则调试器不会启动,并且断点会出现不能达到。

If I capture the output from debug, I got the following: 如果我从debug捕获了输出,则会得到以下信息:

The program '[11980] WebBrowserTest.exe: Program Trace' has exited with code 0 (0x0). 程序“ [11980] WebBrowserTest.exe:程序跟踪”已退出,代码为0(0x0)。 The program '[11980] WebBrowserTest.exe: Managed (v4.0.30319)' has exited with code -1 (0xffffffff). 程序“ [11980] WebBrowserTest.exe:托管(v4.0.30319)”已退出,代码为-1(0xffffffff)。

How could I solve this issue. 我该如何解决这个问题。

最终,我得到了针对该问题的解决方案,它与Windows用户权限有关,一旦我运行VS2012作为管理员,调试器就可以毫无问题地启动。

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

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