简体   繁体   English

有没有一种方法可以将VS2013附加到关注的应用程序上?

[英]Is there a way to attach with VS2013 to the application under focus?

We are developing a Prism application and starting the application under the debugger is pretty slow due to the loading modules procedure so we start the application and later on we attach to it. 我们正在开发一个Prism应用程序,由于加载模块的过程,在调试器下启动该应用程序的速度非常慢,因此我们启动了该应用程序,之后再将其附加到该应用程序上。

Is there a way (macro, plugin, external tool) to attach to the application that is currently under focus? 有没有办法(宏,插件,外部工具)附加到当前关注的应用程序? That would be very convenient. 那将非常方便。

According to some Research and my experience, it is not possible to attach the Debugger to the process whose window is in foreground. 根据一些Research和我的经验,不可能将Debugger附加到窗口位于前台的进程中。 What may be the best solution for you, my friend, is the Just - In - Time Debugger . 我的朋友,对于您来说,最好的解决方案是即时调试器 You can find more info here : 您可以在这里找到更多信息:

http://msdn.microsoft.com/de-de/library/5hs4b7a6.aspx http://msdn.microsoft.com/de-de/library/5hs4b7a6.aspx

If you configure your application to use JIT, every time an error occurs, the following window will pop up : http://i.stack.imgur.com/gCBKq.png 如果将应用程序配置为使用JIT,则每次发生错误时,都会弹出以下窗口: http : //i.stack.imgur.com/gCBKq.png

Following Hans advice I've created a tool that exactly does that: 根据Hans的建议,我创建了一个可以做到这一点的工具:

https://attacher.codeplex.com/ https://attacher.codeplex.com/

I hope it helps someone with the same need. 我希望它可以帮助有同样需求的人。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM