Attach debugger to perl.exe process when calling my dll
Posted on 2007-11-14
I have a regular windows dll written in Visual C++ 8.0 (no com, .NET or anything fancy). I want to set a breakpoint in the dll code from within Visual Studio IDE to be hit after the dll is called by a perl script.
The best thing I have come up with is to stick an assert(false); in my dll where I want it to break, and have it throw an unhandled exception, then attach the debugger .
There must be more elegant way.