Re: newbie: how to attach a debugger to a dll dynamically?




"MickyG" <Micky.Goyal@xxxxxxxxx> wrote in message
news:1143589231.428697.303000@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have a windows service (.exe) that loads a dll dynamically which I
need to debug. I have compiled that dll with debug info but cant get
the debugger to start!

I have read some discussions about using _asm{int 3} but thats not
working for me...

Any pointers would be appreciated.

Thanks!
MickyG


Here are a few random thoughts:

Run the service as an app from the ide with breakpoints set before loading
the dll. Then step into the dll.

Write a small test app that loads the dll for debugging.

I've used DebugBreak() successfully in a service (same a int 3).

Is it possible to run the service as a service and attach the debugger to
it?

What version of visual studio are you running?

Mike P


.



Relevant Pages

  • Re: How to connect to children process
    ... Main problem is amount of manual operations required per debug cycle. ... connection to DLL with debugger takes sensible amount of time and manual ... Is the main problem that the debugger keeps symbols file loaded ... AFAIK that's how VS2003 debugger works, but WinDbg should usually ...
    (microsoft.public.vsnet.debugging)
  • Re: How to connect to children process
    ... AFAIK that's how VS2003 debugger works, ... unload symbols completely after the dll ... Also, when setting breakpoint on the needed function (in WinDbg), ... I'm creating code with int 3 in place that I'm willing debug. ...
    (microsoft.public.vsnet.debugging)
  • Re: Debugging JNI shared libraries
    ... >compiles OK on Win32 when I have teh requisite stuff installed and I'm ... >DllMain gets called, attach to the dll? ... code as far as the debugger is concerned). ...
    (comp.programming)
  • Re: AD+ crash logs and .dmps Part II
    ... This a .dll provided by an online payment verification ... The Debugger docs have some basic info but overall, understanding ... details the formation and usage of the stack. ...
    (microsoft.public.inetserver.iis.security)
  • Re: How to connect to children process
    ... I'm creating code with int 3 in place that I'm willing debug. ... Then project is rebuild in VS 2003 and target DLL is copied to remote PC ... Thanks to your help I'm able now using WinDbg on local machine. ... I'm not sure if VS debugger provides any API, ...
    (microsoft.public.vsnet.debugging)