Debuggers

From Genome Analysis Wiki
Revision as of 11:49, 29 April 2011 by Mktrost (talk | contribs) (Created page with '= Debuggers = == Advantages/Disadvantages == * Advantages ** Single step through the code ** Stop execution at a given point to investigate where it goes and what the values ar…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 &

How to Use DDD

ddd Screenshot