Re: Best way to debug VB6 and VB.net interop

Tech-Archive recommends: Fix windows errors by optimizing your registry




"Robert Jordan" <robertj@xxxxxxx> wrote in message news:dft07v$c39$00$1@xxxxxxxxxxxxxxxxxxxx
Hi Eric,

Thanks for the help. That worked great. If you don't mind I have another weird debugging situation. What is the best way to debug a VB.net dll calling a VB com dll? I have a VB6 app that is calling a VB.net dll that then calls a VB6 dll. I don't care about debugging the VB6 app so I just set that as the start up of teh VB.net dll and I can debug the VB.net dll. I have the VB6 dll running in the Vb IDE but the breakpoiunts don't stop in the VB6 dll. Is this the correct way or is there something else?

Sorry, I don't know much about VB6. You may try the same trick using something similar to .NET's Debugger.Break.


This is indeed similar.

You should do a
declare Sub DebugBreak lib "Kernel32"()
Compile the VB6 class with 'include debug symbols'.
In this case, you can't use 'edit & continue' in VB6, the VB6 Ide can't be used to debug, the debugger IDE will jump into to the VB6 DLL and show the VB6 source code.




Rob

.



Relevant Pages

  • Re: Cant Debug COM Interface
    ... When I start to debug the application the DLL is ... a com client in vb.net which is referencing the interface of the COM Server ... If I use this application as Host application I can debug without ... For debugging I can start the ...
    (microsoft.public.vsnet.debugging)
  • Error 430 driving me NUTS!!
    ... but this issue is causing my brain to short circuit (in addition to ... I have created an ActiveX dll and a test 'Container' application for it. ... debugging the dll, run the 'Container' and it worked. ... code just fine, but as soon as I closed down and try to debug, no go. ...
    (microsoft.public.vb.com)
  • Re: Cant Debug COM Interface
    ... that is loading the dll. ... if I specify the second exe as host application I ... When I start to debug the application the DLL ... > Debugging in this configuration is definitely possible. ...
    (microsoft.public.vsnet.debugging)
  • Best way to debug VB6 and VB.net interop
    ... way to debug all of this code at the same time. ... When I run the VB.net dll, the VB6 application opens up and I can step ... I make the VB6 exe create the VB.net dll then the breakpoints do stop. ...
    (microsoft.public.dotnet.framework.interop)
  • Re: cant bebug a dll
    ... You cannot mix debug and release MFC environments without expecting serious disasters. ... other aids for debugging, but you have to give up something here. ... >> debugging the DLL, this message can obviously be ignored. ...
    (microsoft.public.vc.mfc)