简体   繁体   中英

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.

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. 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

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

Following Hans advice I've created a tool that exactly does that:

https://attacher.codeplex.com/

I hope it helps someone with the same need.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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