User Tools

Site Tools


user:mgardne8:portfolio:debug

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
user:mgardne8:portfolio:debug [2014/10/02 13:36] mgardne8user:mgardne8:portfolio:debug [2014/10/07 09:01] (current) mgardne8
Line 1: Line 1:
-~~TOC~~ 
-{{  :opus:fall2014:mgardne8:compiler_complaint.png|Ouch!  }} 
 ====== Debugging with GDB ====== ====== Debugging with GDB ======
 +de·bug
  
 +/dēˈbəɡ/
 +
 +verb
 +identify and remove errors from (a computer program).  
 +[(http://dictionary.reference.com/browse/debug?s=t)]
 +
 +{{:opus:fall2014:mgardne8:compiler_complaint.png|Ouch!}}
 ???What is GDB? ???What is GDB?
 !!!GDB, the GNU Project debugger, allows you to see what is going on `inside' another program while it executes -- or what another program was doing at the moment it crashed.[(http://www.gnu.org/software/gdb/)] !!!GDB, the GNU Project debugger, allows you to see what is going on `inside' another program while it executes -- or what another program was doing at the moment it crashed.[(http://www.gnu.org/software/gdb/)]
Line 16: Line 22:
  
 Before a bug can be fixed, the source of the bug must be located. For example, with segmentation faults, it is useful to know on which line of code the seg fault is occuring. Once the line of code in question has been found, it is useful to know about the values in that method, who called the method, and why (specifically) the error is occuring. Using a debugger makes finding all of this information very simple.[(http://www.cs.cmu.edu/~gilpin/tutorial/)] Before a bug can be fixed, the source of the bug must be located. For example, with segmentation faults, it is useful to know on which line of code the seg fault is occuring. Once the line of code in question has been found, it is useful to know about the values in that method, who called the method, and why (specifically) the error is occuring. Using a debugger makes finding all of this information very simple.[(http://www.cs.cmu.edu/~gilpin/tutorial/)]
 +
 +====== 2 =====
 +==== a ====
 +==== b ====
 +====== 3 =====
 +==== a =====
 +==== b =====
 +====== 4 =====
 +
 +
 ~~REFNOTES~~ ~~REFNOTES~~
user/mgardne8/portfolio/debug.1412271377.txt.gz · Last modified: 2014/10/02 13:36 by mgardne8