User Tools

Site Tools


debug_tutorial

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
debug_tutorial [2013/08/02 02:15]
bogert [Logging debugger output with selective-debug] Lesson-ify text
debug_tutorial [2013/08/02 02:18]
bogert [Debugger: strace] Explain that strace is explained by reading the ltrace section
Line 569: Line 569:
 bsub […] ./​selective-debug --strace ./​debug-tutorial</​code>​ | bsub […] ./​selective-debug --strace ./​debug-tutorial</​code>​ |
  
 +What you have learned about ltrace also applies to strace. Therefore, please make sure to read the [[debug_tutorial#​Debugger:​ ltrace|ltrace section]] in depth.
 ===== Logging debugger output with selective-debug ===== ===== Logging debugger output with selective-debug =====
 As you have seen, ltrace and strace are non-interactive debuggers. Such debuggers usually produce a large amount of output which is difficult to follow live.\\ As you have seen, ltrace and strace are non-interactive debuggers. Such debuggers usually produce a large amount of output which is difficult to follow live.\\
 Therefore, we now show you how to use [[selective-debug]] to log the output of the debugger to one file per reach OpenMPI rank. Therefore, we now show you how to use [[selective-debug]] to log the output of the debugger to one file per reach OpenMPI rank.
  
-^ Lesson ​12 ^+^ Lesson ​14 ^
 | There are two switches of [[selective-debug]] which can be used to control logging:\\ \\ <​code>​ | There are two switches of [[selective-debug]] which can be used to control logging:\\ \\ <​code>​
 --log        If you are using OpenMPI and want to clone the output of the debugger to a per-rank log file. --log        If you are using OpenMPI and want to clone the output of the debugger to a per-rank log file.
debug_tutorial.txt · Last modified: 2013/08/02 02:18 by bogert