Visual Studio Attach to Process - change default a

2019-07-19 11:12发布

问题:

I'm attaching Visual Studio Debugger to IE instance which is running silverlight application, using Attach to Process dialog.

In the list of available processes there are Script, Silverlight and x86 types listed for iexplore.exe, but Script code gets chosen automatically. Can this be changed? I want Silverlight to be preferred.

Of course I can click Select button and pick Silverlight, but next time I'll need to attach to IIS and change these options again..

回答1:

I made a macro to do this. It would find the iexplore.exe process that was Silverlight whose parent was an iexplore.exe process with a title that matched my application and then attach with silverlight. One-button attachment!

But then Microsoft removed macro support from Visual Studio 2012. Grrrr...

I need to re-write it as an extension.