[英]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.