简体   繁体   English

将调试器附加到Visual Studio 2017的另一个实例

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

相关问题 将调试器附加到另一个Visual Studio实例上 - Attach debugger onto another Visual Studio instance 如何将调试器附加到除我在Visual Studio 2017中启动的其他进程之外? - How do I attach a debugger to other process than I start in Visual Studio 2017? Visual Studio - 以编程方式将调试器附加到远程进程 - Visual studio - Attach debugger to remote process - programatically 将流程附加到Visual Studio 2013中的调试器 - Attach process to debugger in Visual Studio 2013 将Visual Studio调试器附加到VS IDE主机 - Attach Visual Studio debugger to VS IDE Host 我能否以编程方式将正在运行的 .NET 6 进程附加到正在运行的 Visual Studio 调试器实例? - Can I programmatically attach a running .NET 6 process to a running instance of Visual Studio debugger? 将调试器附加到 IIS 实例 - Attach Debugger to IIS instance Visual Studio 2017不会在调试器上显示工具提示 - Visual Studio 2017 doesn't show tooltip on debugger 将Visual Studio调试器附加到Windows服务 - “附加”灰色 - Attaching Visual Studio debugger to Windows service — “attach” greyed out Visual Studio 2012加载项 - 如何将调试器附加到进程 - Visual studio 2012 add-in - how to attach debugger to a process
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM