PDA

View Full Version : Source File


raleeper
September 1st, 2007, 20:37
blabberer replying to jmachine 1-31-2005

[Can you step through the source file with this deguger?
When I bring up the source window it is alwys blank.
How do I see the source file?
Jim]

Source Window
have you compiled it with debug info or do you have the .pdb or .dbg file in the executables directory ??? and is the source file in same directory as the executable if your answer is yes to both of the above question olly should be able to load your source without any problems
use ctrl+f5 to view sourc in olly dbg

you can right click and select view in disassembler from source window
or view source from disassembler window

or use view ---> source files for a list of source files that are availabel
on your project

Source files
Module Source Source path
cout COUT.CPP C:\Borland\testwin\cout.cpp
cout OSTREAM.H c:\Borland\Bcc55\include\ostream.h

I have the same problem with OllyDbg v1.10 and nothing above works.

My working directory is g:\lfw\ and it contains [among others]:

g:\lfw\lfw.asm
g:\lfw\lfw.exe
g:\lfw\lfw.pdb

ctrl+f5 does nothing.

Right click in
source window appearance menu only
CPU/disassy window 20 item menu - none relate to loading source file
CPU/disassy window - info pane 10 item menu - none useful
other windows nothing for loading source

View/source files empty window not alterable

Help!

LLXX
September 1st, 2007, 22:17
You seem to have missed my post about OllyDbg NOT being a proper source-level debugger.

blabberer
September 3rd, 2007, 11:36
you could have continued in that thread or if you are spawning a new thread atleast link the old thread here

it seems you simply copy pasted my post

and your relevent information is missing

1) what is the compiler you are using
2)what are the commandline arguments you are passing to your linker
3)was the pdb created by you (or did you compile the source)
4)can some other things like dumpbin etc find the debugging information
5)did you try dragging and dropping the pdb to ollydbg directory along with your source files
and does ollydbg see your source files then ?
6)does the inbuilt debugger of your compiler (i assume msvc see the sources)
7)is it coded in assembly code
8)if yes have you searched this board and found the relevent /zi switches and are you passing them to the linker
9)if all else failed have you tried loading your pdb with modified commandline plugin available for download here (you need to set _nt_symbol_path and move your pdb to that directory)

and a few more queries need to be answered