[英]Attach debugger to another instance of Visual Studio 2017
I am attempting to attach to another instance of visual studio 2017 to debug random VS crashes, usually when in the winforms designer. 我试图连接到Visual Studio 2017的另一个实例,以调试随机VS崩溃,通常是在winforms设计器中。 The techniques to do this in VS2012 and earlier are not working.
在VS2012及更早版本中执行此操作的技术不起作用。
I have tried starting as administrator and using the /rootsuffix Exp command line argument. 我尝试以管理员身份开始使用/ rootsuffix Exp命令行参数。 The other instance of VS does load but I cannot set any breakpoints in my code "because no symbols are loaded".
VS的另一个实例确实已加载,但是我无法在代码中设置任何断点“因为未加载任何符号”。
The last time I tried this was in VS2012 and it worked perfectly. 我上次尝试此操作是在VS2012中,它运行良好。 Is there a new "trick" to doing this in VS2017?
在VS2017中这样做是否有新的“技巧”? Note I have also tried with VS2015 with no success.
注意我也曾尝试使用VS2015,但没有成功。
One possibility is to spin up the process in the first instance of VS, and the detach the process ( Debug > Detach All ). 一种可能是在VS的第一个实例中启动该进程,然后分离该进程(“调试”>“全部分离”)。 Then in the second VS instance attach t the process ( Debug > Attach to Process ).
然后在第二个VS实例中附加该进程(“调试”>“附加到进程”)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.