I have a solution that has 2 projects. The main one and the one that is called with CreateProcess() from the main program.
The main one is a win32 program and the second a console application. I use the win32 program to invoke the console app and have it do its thing. My problem is, I want to be able to debug the console app once it's invoked with CreateProcess.
How can I accomplish this? or Can I accomplish this?
I'm also a little confused with the Debugger API as I want Visual Studio to be the debugger, instead of me creating the debugger.
Call DebugBreak(); at the start of the console process. When it hits that call you will be able to start a new instance of Visual Studio to debug the console process.