VB6 DLL Source Debugging?
Anyone know if VB6 allows source debugging of DLLs written in VisualC from inside the VB IDE (or vice-versa)?
I'd like to be able to step through my VB program and then step into the DLL (down to looking at what's being pushed on the stack when, etc.) so that I can more meaningfully debug my DLLs.
Re: VB6 DLL Source Debugging?
VB will not let you step through anything for which you do not have the VB project. (No compiled DLLs, etc.).
You can do this though...
Start your VB program and run until before the DLL runs.
Open VC++ (no project) and select Build | Start Debug | Attach to Process
Attach to your VB program
Open the DLL source code file (not the project, that will kill your debug session) in VC++, select a breakpoint in your code.
Continue running the VB program, and it should stop.
The last time I did this was quite a while ago - no guarentees.
Re: VB6 DLL Source Debugging?
Cool. It still works (VB6 and VC6 SP2).
Thanks!
Owen