Log in

View Full Version : How can i use symbolic debugging information maken


peak
March 25th, 2004, 00:27
i know that ollydbg can use debugging information maken by masm32.
the command is:
\masm32\bin\ml /c /coff /Zi test.asm
\masm32\bin\Link /DEBUG /DEBUGTYPE:CV /SUBSYSTEM:WINDOWS test.obj
but how i can use the debugging information maken by VC,
i open the .exe file in the debug directory ,which was maken by the GUI .But i can't see the source file and Ctrl+F5 doesn't work at all.
i wander whether it must be compiled and linked under the command line ,
such as:
cl test.c /link /DEBUG
can anybody help me?

blabberer
March 26th, 2004, 05:52
Understands debugging information in Borland® format
/DEBUG /DEBUGTYPE:CV /SUBSYSTEM:
the cv there stands for codeview
and the files it looks for if there is debug info is a file with extension .pdb

does your vc satisfy these condition then yes ctrl+f5 will work
recap
1)need a *.pdb in the directory of exe
2)find a command line or read the manual and see how to generate debug info in borland format (there must some blahblah switch to it)

blabberer
March 26th, 2004, 09:34
well a little google yielded this tell me if this is usefull info

hxxp://www.michaelmoser.org/compopts.htm (notice xx)

peak
March 26th, 2004, 19:27
by vc7
the command line:
cl test.c
link /DEBUG /DEBUGTYPE:CV SUBSYSTEM:CONSOLE (/INCREMENTAL:NO) test.obj
or
link /DEBUG /DEBUGTYPE:CV SUBSYSTEM:WINDOWS (/INCREMENTAL:NO) test.obj
od open ->test.exe->Ctrl +F5 doesn't work
od debug->select path for symbols ->point to the directory (include the.exe .pdb.obj files)->Ctrl +F5 doesn't work yet