How to debug for reporting: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 9: | Line 9: | ||
==On Linux== | ==On Linux== | ||
If the crash happens on a Linux (or generally on a unix machine with the GNU gcc) you can use <kbd>gdb</gdb>. | If the crash happens on a Linux machine (or generally on a unix machine with the GNU gcc) you can use <kbd>gdb</gdb>. | ||
You have to first load scribus in a new gdb session | You have to first load scribus in a new gdb session and launch scribus from there. after scribus has crashed you automatically get some details about the error occured. you can get a full report with the command bt (''backtrace''). | ||
<pre> | <pre> | ||
$ gdb scribus | $ gdb scribus | ||
(gdb) run | |||
... error reporting ... | ... error reporting ... | ||
(gdb) bt | |||
... full backtracking informations | ... full backtracking informations | ||
(gdb) exit | |||
$ | |||
</pre> | </pre> |
Revision as of 11:38, 6 December 2006
Installation • Usage • PDF issues • Imposition • Other |
Introduction
When you fill a bug about a crash, most of the time it is very helpfull if you can attach a backtrace from a debugger.
This Howto tells you how to get this informations.
On Linux
If the crash happens on a Linux machine (or generally on a unix machine with the GNU gcc) you can use gdb</gdb>.
You have to first load scribus in a new gdb session and launch scribus from there. after scribus has crashed you automatically get some details about the error occured. you can get a full report with the command bt (backtrace).
$ gdb scribus (gdb) run ... error reporting ... (gdb) bt ... full backtracking informations (gdb) exit $