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 1: | Line 1: | ||
= Preliminaries = | = Preliminaries = | ||
Since compilation of all the source from scratch can take long it is good to have a source folder where most of the source has been compiled. To do this ... | |||
== Workflow == | |||
# Clone the repository | |||
# Regenerate the scripts | |||
# Configure | |||
= Basic debugging processes = | |||
== Error & trace the stack == | |||
= Tools for debugging = | = Tools for debugging = | ||
== GBD == | |||
To start Octave under gdb use the script <code> run-octave </code> at the top level of the source tree and run it with the command-line option <code> -g </code>like this | |||
<code> | |||
cd /octave/source/tree | |||
./run-octave -g | |||
</code> | |||
=== Most used commands === | |||
[http://www.gnu.org/software/gdb/documentation gdb documentation] | |||
== Emacs == | |||
In short: | |||
To start Octave in debug mode within emacs type | |||
<code> | |||
M-x gud-gdb | |||
<code> | |||
then change the command in the minibuffer to | |||
<code> | |||
Run gud-gdb (like this): /path/to/octave/source/tree/run-octave -gud | |||
</code> | |||
For more info use this | |||
[http://www.gnu.org/software/emacs/manual/html_node/emacs/Debuggers.html#Debuggers link] | |||
to the emacs manual section on debuggers operation | |||
[http://www.gnu.org/software/ | |||
== ddd == | == ddd == | ||
[http://www.gnu.org/software/ddd gui for gdb] | |||
[http://www.gnu.org/software/ddd | |||
[[Category:Development]] | [[Category:Development]] |