From LedHed's Wiki
Jump to: navigation, search
(HowTo)
Line 5: Line 5:
  
 
gdb /path/to/binary<br>
 
gdb /path/to/binary<br>
run the Binary as needed<br>
+
run --options<br>
when the binary crashed run 'bt'<br>
+
when the binary crashes run:<br>
 +
bt<br>
  
  
Line 12: Line 13:
  
 
gdb /usr/local/bin/dspam<br>
 
gdb /usr/local/bin/dspam<br>
dspam --daemon --debug<br>
+
run --daemon --debug<br>
  
 
''Wait for the app to die.''<br>
 
''Wait for the app to die.''<br>
  
 
bt<br>
 
bt<br>

Revision as of 17:30, 2 August 2006

What is a Backtrace (Also known as a Stack Trace).


HowTo

gdb /path/to/binary
run --options
when the binary crashes run:
bt


Example

gdb /usr/local/bin/dspam
run --daemon --debug

Wait for the app to die.

bt