CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 1999
    Posts
    14

    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.


  2. #2
    Join Date
    Apr 1999
    Posts
    16

    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.


  3. #3
    Join Date
    Apr 1999
    Posts
    14

    Re: VB6 DLL Source Debugging?

    Cool. It still works (VB6 and VC6 SP2).

    Thanks!
    Owen


  4. #4
    Join Date
    May 1999
    Posts
    45

    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
  •  





Click Here to Expand Forum to Full Width

Featured