Re: debugging VS2005 along with VC6 dll
Tech-Archive recommends: Fix windows errors by optimizing your registry
- From: "Oleg Starodumov" <com-dot-debuginfo-at-oleg>
- Date: Fri, 31 Mar 2006 10:54:31 +0300
I have Win32 application written in C and built in VS2005. This app calls dll
services. Dll in turn has been built outside of Visual Studio using VC 6.0.
How should I configure VS to be able to step into dll's functions during
debugging? It looks like VS2005 doesn't get debug info generated by VC6.0.
AFAIK VS2005 debugger is still able to read symbols produced by VC6.
Here are the recommended debug information settings for VC6 projects:
Compiler: /Zi
Linker: /debug /debugtype:cv /pdb:yourapp.pdb /pdbtype:con (and also /opt:ref
in release builds)
It is best to put symbols (.pdb file) into the same directory with its DLL.
If it still does not help, select the DLL in Modules window and
do R-Click + Symbol Load Information to see where the debugger
tried to look for symbols.
Regards,
Oleg
[VC++ MVP
http://www.debuginfo.com/]
.
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: Thread crashing on return instruction...
... On exiting the DLL during exe termination the application ... Some breakpoints were not even seen by the debugger, ... PB) If the primary thread is exitted, the kernel kills all other still ... (microsoft.public.windowsce.embedded.vc) |
|