I assume that everyone who has a lot of debugging has a convenient macro in Visual Studio (with a shortcut to it on the toolbar), which, when called, automatically joins a certain process (identified by name).
it saves a lot of time, and does not click "Debug" → "Attach to the process ...", but only works if one of them starts one instance of the process that you want to connect to. If theres - this is more than one instance of a particular process in memory - the first (with a lower PID?) Is selected by the debugger.
Does anyone have a macro that shows a dialog (if more than 1 process with the specified name works) and allows the developer to choose the one to which he / she really wants to connect.
I think that the choice can be made based on the text of the windwow header (which in most cases would be enough), and when a particular instance of the macro is selected it passes the PID of the process to the Debugger object?
If someone has this macro or knows how to write it - please share.
Thanks.
macros debugging visual-studio visual-studio-2005
Steve
source share