I need to attach to the unmanaged process (Windows service), using Visual Studio 2015 debugger and macro. When you debugging processes under SCM you have 10 seconds to attach somewhere in startup point.
Since Visual Studio 2013 Macro recorder and editor is an extension available from plugins Marketplace. Usage of old good VB macros like in this question is unavailable, extension provides JS macros only.
So I'm trying to write this simple macro based on the example provided by the link
for (var process in dte.Debugger.LocalProcesses){
if(process.Name == "my_service.exe"){
process.Attach();
}
}
It does not work. Did anyone had success with the same problem?