Log in

View Full Version : Source code view?


Anonymous
November 20th, 2002, 08:23
Hey!

Well, I've RTFM and it doesn't say much about how the source and source files windows are used... Do I have to compile the exe/dll using some specific flags and then put the C source file somewhere???

I know this may me a generic question, but I've mostly debugged without having access to the source so far.

TBD
November 20th, 2002, 22:39
yup, you need to compile with debug information (Borland or Microsoft)
for example, with MASM:

\masm32\bin\ml /c /coff /Zi main.asm
\masm32\bin\Link /DEBUG /DEBUGTYPE:CV /SUBSYSTEM:WINDOWS main.obj

then you will see the source line on info pane (under the CPU window) and
you can use CTRL+F5 to view the entire source file.

it is groovy

Anonymous
November 21st, 2002, 06:59
Is it only possible to use it with programs writen in asm?

TBD
November 21st, 2002, 07:06
of course not every compiler that makes debug info works ... i tried with Visual C and C-- -> works perfectly.

just look for command switches for you compiler.

[TIP] click on CPU header bar (that with Address|Hex dump|Disassembly|Comment) on Comment tab to switch between Comment->Source->Profile. handy!

gfplus
November 24th, 2002, 13:52
I try with Delphi and Borland C++ builder - also work excelent