Debuggers
From Genome Analysis Wiki
Jump to navigationJump to search
Debuggers
Advantages/Disadvantages
- Advantages
- Single step through the code
- Stop execution at a given point to investigate where it goes and what the values are
- Attach to an already running program
- Disadvantages
- Not running real-time, so may not expose all problems
DDD
How to Compile for Debug
Compile with the option: -ggdb -O0
For the statgen library, you can compile with: make OPTFLAG="-ggdb -O0"
How to Start DDD
On a linux command line, type: ddd pathToYourExecutable/yourExecutable &