Re: Debugging thru AxHost



Try to show a message box from the ocx (when it is called by the client app).
While this message box is shown, break into debugger, check the call stack
and switch to a stack frame that belongs to the ocx. Will the debugger be able
to show you the ocx' sources in this case?


Yes in this case the Debugger shows the VB6 ocx source in VB.Net. But
I want step into VB6 Ocx control.

How I have to step into VB6 ocx.


I am not sure it's possible to step between VB.NET and VB6 code in this case,
AFAIR breakpoints always had to be used as a workaround.
Btw, do breakpoints work now? (e.g. if you set breakpoint in the source that has been
shown by the debugger, e.g. in a place that will be executed after you dismiss
the message box)

Oleg




.



Relevant Pages

  • Re: How to debug an OCX?
    ... I tried executing the OCX directly from VB. ... You can then use the VC debugger or WinDbg to view and step thru your code. ... One way to debug a .ocx is to open it in the IDE then set the "Start ... You can also create multiple VB IDEs - one running the container app, ...
    (microsoft.public.vb.general.discussion)
  • Re: Debugging thru AxHost
    ... While this message box is shown, break into debugger, check the call stack ... and switch to a stack frame that belongs to the ocx. ... AFAIR breakpoints always had to be used as a workaround. ...
    (microsoft.public.vsnet.debugging)
  • Re: VS2005 Assistent =?UTF-8?B?ZsO8ciBNRkMtQWN0aXZlWC1DdHJscw==?=
    ... An dieser Stelle hängt der entsprechende Prozess in VS2005 aber fest. ... Es wird wahrscheinlich regsvr32 mit Parameter [mein OCX] aufgerufen. ... In den Projekteinstellungen für den Debugger die entsprechende regsvr32 Befehlszeile angeben. ...
    (microsoft.public.de.vc)
  • Re: How to debug an OCX?
    ... "Open it in the IDE"? ... Open the OCX directly? ... There are of course several different methods to debug VB components here ... You can then use the VC debugger or WinDbg to view and step thru your ...
    (microsoft.public.vb.general.discussion)
  • Re: Debugging thru AxHost
    ... of the ocx and its symbols in Modules window. ... While this message box is shown, break into debugger, check the call stack ... Yes in this case the Debugger shows the VB6 ocx source in VB.Net. ...
    (microsoft.public.vsnet.debugging)

Loading