I have an application that is running the process "w3wp.exe".
In the debugging process, I often find myself as follows:
1 - Make some changes
2 - Create a project
3 - Attach to "w3wp.exe" using the "Attach to process" dialog in the "Tools" menu.
4 - Follow some steps in the application to execute my code, so I can execute it in the debugger
I would like to automate step 3 in a post-build script, so that the IDE automatically joins the process after the build is complete. Please note that I am already starting the application as part of the post-build process, so I can count on the currently existing process.
Does anyone know a way to automate the attach to process command? Something from the command line would be especially nice, but the macro would also do.
I am using Visual Studio 2008 under Windows 7, 64 bit.
Edit @InSane basically gave me the correct answer, but it doesn't work because I need to debug managed code, not native code. It seems that vsjitdebugger has its own code by default, and thus my breakpoint does not hit. From within the IDE, I can specify "managed code" and the debugger joins, as expected. So is there a way to point vsjitdebugger to managed code?
visual-studio-2008 automation
JosephStyons
source share