|
-
April 1st, 1999, 04:00 PM
#1
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.
-
April 1st, 1999, 04:56 PM
#2
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.
-
April 1st, 1999, 05:06 PM
#3
Re: VB6 DLL Source Debugging?
Cool. It still works (VB6 and VC6 SP2).
Thanks!
Owen
-
April 1st, 1999, 08:35 PM
#4
Easier solution
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|