Click to See Complete Forum and Search --> : VB6 DLL Source Debugging?


Owen
April 1st, 1999, 03:00 PM
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.

James Grant
April 1st, 1999, 03:56 PM
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.

Owen
April 1st, 1999, 04:06 PM
Cool. It still works (VB6 and VC6 SP2).

Thanks!
Owen

Vinayak Sapre
April 1st, 1999, 07:35 PM
Try this
create DLL project. When you are done with coding you need to set 'Create Symbolic Debug info' option. For that Goto Project Properties - Compile tab - Native Code.
Then compile the DLL. Now close VB. Start VC client project F5 should start debugging. if you step into the (F11) call which is implemented in VB it should show you the VB code also.
I have tried this will call back functions. I think this should work with DLL also.


Vinayak Sapre