I'm trying to figure out a way to debug an EXE+DLL combo using VS 2005.
During the execution, these binaries are invoked by the browser. I kknow this is very little information. I'm trying to figure out more.
Right now I'm stuck with just log statements for debugging.
Is there a way in which I can have a proper debugging session setup like normal VS projects.
And, the binaries are compiled using VS 2005, but the solution is in make file format. Don't have VS solution files. The code is completely in C, C++ and win32.
Are you talking about debugging a browser plugin? That is, is the exe you're referring to a web browser and the DLL a plug-in?
I've debugged both Internet Explorer and Firefox plug-ins using Visual Studio 2005 and 2008. With Firefox you can make life a lot easier by disabling the plug-in container mechanism so the plug-in is loaded directly into the Firefox process; then you can just make Firefox the debug target.
If you can't do this, it might help if you compile in (while developing) a debug break to force the debugger to attach just where you want it to, rather than attaching as some random point (this assumes you've configured Visual C++ as your JIT debugger.)
The debugger doesn't care what you built your binary with as long as it's got debug symbols.
When you say invoke and exe, you you mean CreateProcess or similar? Or this also via COM?
If you are controlling your exe via COM, then Visual Studio will automatic launch a second instance of itself and step into the new process if you've checked "Enable RPC Debugging" (on the Native tab of the Debugging options.)