简体   繁体   English

在本地 IIS 上调试时查看 Visual Studio 中的异常

[英]See exceptions in Visual Studio when debugging on local IIS

I'm debugging a web service on the local IIS but though if I set a breakpoint it does get hit, if an exception happens, nothing is shown on Visual Studio.我正在本地 IIS 上调试 web 服务,但是如果我设置断点,它确实会受到影响,如果发生异常,Visual Studio 上不会显示任何内容。

How do I get it to break and show me the error details as with desktop applications?如何让它像桌面应用程序一样中断并向我显示错误详细信息?

Enable breaking on all exceptions, from Debug->Windows->Exception Settings.从 Debug->Windows->Exception Settings 启用所有异常的中断。

在此处输入图像描述

If your breakpoints get hit, then you're attached to the right process.如果您的断点被击中,那么您将附加到正确的进程。 If it's an old or wrong dll, so no symbols loaded, you won't be able to see the source code, but it will still break on exceptions.如果它是旧的或错误的 dll,因此没有加载符号,您将无法看到源代码,但它仍然会因异常而中断。

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

相关问题 IIS 在使用 Visual Studio 调试时拒绝连接 - IIS refuses connection when debugging with Visual Studio 在 Visual Studio 2010 中调试时忽略跨 AppDomains 的异常 - Ignore exceptions that cross AppDomains when debugging in Visual Studio 2010 Visual Studio IIS调试错误 - Visual Studio IIS Debugging error 在Visual Studio 2010中进行调试时如何设置IIS? - How do I setup IIS when debugging in Visual Studio 2010? Visual Studio Debugger 在使用 dotPeek 调试第三方反编译代码时看不到参数或局部变量 - Visual studio Debugger can't see parameters or local variables when debugging a third party decombiled code using dotPeek 在 Visual Studio 中调试时查看变量的内存地址? - See memory adress of a variable when debugging in Visual Studio? 调试时Visual Studio 2017尝试使用IP连接到本地Mysql - Visual Studio 2017 tries to connect to Local Mysql with an IP when debugging Visual Studio / IIS:荷兰例外情况不令人满意 - Visual Studio / IIS: Dutch exceptions unsatisfactory 在调试期间,当抛出并捕获大量异常时,可以减轻Visual Studio中的速度 - Mitigating slowdown in Visual Studio during debugging when large number of exceptions being thrown and caught Visual Studio调试,请参见/不参见debug.writelines - Visual Studio debugging, see/not see debug.writelines
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM