Editing Debugging Octave
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 108: | Line 108: | ||
[http://www.gnu.org/software/gdb/documentation gdb documentation] | [http://www.gnu.org/software/gdb/documentation gdb documentation] | ||
For debugging octave_value variables (e.g. <code>my_octave_value</code>) to find out what the variable actually is (instead of just it's base class): | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
(gdb) | (gdb) print *(my_octave_value.rep) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
The following command shows the back trace of all threads belonging to the Octave process: | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
(gdb) | (gdb) thread apply all bt | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== ddd == | == ddd == |