Visual Studio无法调试 [英] Visual studio cant debug

查看:94
本文介绍了Visual Studio无法调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我收到以下错误时调试,有帮助吗?

I receive the following error when  debug,any help?

线程0x20b4已退出,代码为0(0x0).
'winupdates.vshost.exe'(CLR v4.0.30319:winupdates.vshost.exe):已加载'C:\ Users \ myname \ documents \ visual studio 2015 \ Projects \ winupdates \ winupdates \ bin \ Debug \ winupdates.exe'.符号已加载.
进入:逐步浏览非用户代码'winupdates.Program.<> c__DisplayClass18_0..ctor'
'winupdates.vshost.exe'(CLR v4.0.30319:winupdates.vshost.exe):已加载'C:\ WINDOWS \ Microsoft.Net \ assembly \ GAC_MSIL \ System.Configuration \ v4.0_4.0.0.0__b03f5f7f11d50a3a \ System.Configuration .dll".跳过的加载符号.模块已优化,调试器 选项仅我的代码"已启用.
线程0x1f2c已退出,代码为0(0x0).
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:mscorlib.dll中的'System.IO.IOException'
线程0x11a0已退出,代码为0(0x0).
引发异常:mscorlib.dll中的'System.IO.IOException'
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:mscorlib.dll中的'System.IO.IOException'
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
线程0x1884已退出,代码为0(0x0).
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:mscorlib.dll中的'System.IO.IOException'
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
线程0x22e4已退出,代码为0(0x0).
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
线程0x1998已退出,代码为0(0x0).
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
线程0x2718已退出,代码为0(0x0).
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
引发异常:System.dll中的"System.Net.Mail.SmtpException"
引发异常:System.Drawing.dll中的"System.ComponentModel.Win32Exception"
引发异常:System.Drawing.dll中的"System.Runtime.InteropServices.ExternalException"
程序"[2324] winupdates.vshost.exe"已退出,代码为-1(0xffffffff).

The thread 0x20b4 has exited with code 0 (0x0).
'winupdates.vshost.exe' (CLR v4.0.30319: winupdates.vshost.exe): Loaded 'C:\Users\myname\documents\visual studio 2015\Projects\winupdates\winupdates\bin\Debug\winupdates.exe'. Symbols loaded.
Step into: Stepping over non-user code 'winupdates.Program.<>c__DisplayClass18_0..ctor'
'winupdates.vshost.exe' (CLR v4.0.30319: winupdates.vshost.exe): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
The thread 0x1f2c has exited with code 0 (0x0).
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.IO.IOException' in mscorlib.dll
The thread 0x11a0 has exited with code 0 (0x0).
Exception thrown: 'System.IO.IOException' in mscorlib.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.IO.IOException' in mscorlib.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
The thread 0x1884 has exited with code 0 (0x0).
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.IO.IOException' in mscorlib.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
The thread 0x22e4 has exited with code 0 (0x0).
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
The thread 0x1998 has exited with code 0 (0x0).
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
The thread 0x2718 has exited with code 0 (0x0).
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
Exception thrown: 'System.Net.Mail.SmtpException' in System.dll
Exception thrown: 'System.ComponentModel.Win32Exception' in System.Drawing.dll
Exception thrown: 'System.Runtime.InteropServices.ExternalException' in System.Drawing.dll
The program '[2324] winupdates.vshost.exe' has exited with code -1 (0xffffffff).

推荐答案

穆斯塔法·戴姆斯(

Hi MustafaDamus,

您调试了哪种类型的应用程序?

Which kind of app did you debug?

请在工具"->选项"->调试"->符号"下启用Microsoft符号服务器.

Please enable the Microsoft symbols server under TOOLS->Options->Debugging->Symbol.

调试-> Windows->模块,您可以手动加载符号.

Debug -> Windows -> Module, you could load the symbols manually.

要禁用仅我的代码",请打开工具->选项->调试->常规,然后清除复选框仅启用我的代码(仅受管理)"

您可以禁用优化代码"在项目属性下.

To disable "Just my code", please open Tools -> options -> Debugging -> General and clear the checkbox "Enable Just my code (Managed only)"

You could disable the "Optimize code" under project property.

然后再次对其进行调试.

And then re-debug it again.

此外,您可以在调试"->"Windows"下启用例外设置"窗口,然后在您的侧面添加一个断点,在命中该断点后使用step into对其进行调试,因此它具有未处理的异常,它将抛出调试期间出现异常.

In addition, you could enable the Exception settings windows under Debug->Windows, and then add a breakpoint in your side, debug it using step into after the breakpoint was hit, so it has the unhandled exception, it would throw the exception during debugging.

最好的问候,

Jack


这篇关于Visual Studio无法调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆