[英]Using “Attach to Process” for debugging
I want to debug an issue that does not happen when I run my application from VisualStudio
but it does happen when I run it directly from localhost
. 我想调试一个问题,当我从
VisualStudio
运行应用程序时不会发生,但是当我直接从localhost
运行它时,确实会发生。 It is a Silverlight app. 这是一个Silverlight应用程序。
So I thought I should use "Attach to process"
to find out what is going on. 因此,我认为我应该使用
"Attach to process"
来了解正在发生的事情。 So I run my application directly from localhost
- not from VS - and then in VS I pick Attach to process and select my localhost
process. 因此,我直接从
localhost
(而不是从VS)运行应用程序,然后在VS中,选择“附加到进程”并选择我的localhost
进程。 But it never hits my breakpoints. 但是它从来没有达到我的断点。 Is there some other settings I am missing to be able to debug it this way?
还有其他一些我无法通过这种方式进行调试的设置吗?
如果您正在运行Silverlight应用,则必须附加到承载XAP的浏览器(IE,Chrome等)才能附加到代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.