https://wiki.octave.org/wiki/api.php?action=feedcontributions&user=132.204.236.96&feedformat=atomOctave - User contributions [en]2024-03-29T07:37:07ZUser contributionsMediaWiki 1.39.2https://wiki.octave.org/wiki/index.php?title=Debugging_Octave&diff=1516Debugging Octave2012-07-18T10:44:34Z<p>132.204.236.96: /* GBD */</p>
<hr />
<div>= Preliminaries =<br />
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 ...<br />
<br />
== Workflow ==<br />
# Clone the repository<br />
# Regenerate the scripts<br />
# Configure<br />
<br />
= Basic debugging processes =<br />
== Error & trace the stack ==<br />
<br />
= Tools for debugging =<br />
== GBD ==<br />
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<br />
<br />
<code><br />
cd /octave/source/tree<br />
./run-octave -g<br />
</code><br />
<br />
<br />
=== Most used commands ===<br />
[http://www.gnu.org/software/gdb/documentation gdb documentation]<br />
<br />
== Emacs ==<br />
<br />
In short:<br />
<br />
To start Octave in debug mode within emacs type<br />
<br />
<code><br />
M-x gud-gdb<br />
<code><br />
<br />
then change the command in the minibuffer to<br />
<br />
<code><br />
Run gud-gdb (like this): /path/to/octave/source/tree/run-octave -gud<br />
</code><br />
<br />
For more info use this<br />
[http://www.gnu.org/software/emacs/manual/html_node/emacs/Debuggers.html#Debuggers link] <br />
to the emacs manual section on debuggers operation<br />
<br />
== ddd ==<br />
[http://www.gnu.org/software/ddd gui for gdb]<br />
<br />
[[Category:Development]]</div>132.204.236.96https://wiki.octave.org/wiki/index.php?title=Debugging_Octave&diff=1515Debugging Octave2012-07-18T10:41:29Z<p>132.204.236.96: /* Emacs */</p>
<hr />
<div>= Preliminaries =<br />
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 ...<br />
<br />
== Workflow ==<br />
# Clone the repository<br />
# Regenerate the scripts<br />
# Configure<br />
<br />
= Basic debugging processes =<br />
== Error & trace the stack ==<br />
<br />
= Tools for debugging =<br />
== GBD ==<br />
=== Most used commands ===<br />
[http://www.gnu.org/software/gdb/documentation gdb documentation]<br />
<br />
== Emacs ==<br />
<br />
In short:<br />
<br />
To start Octave in debug mode within emacs type<br />
<br />
<code><br />
M-x gud-gdb<br />
<code><br />
<br />
then change the command in the minibuffer to<br />
<br />
<code><br />
Run gud-gdb (like this): /path/to/octave/source/tree/run-octave -gud<br />
</code><br />
<br />
For more info use this<br />
[http://www.gnu.org/software/emacs/manual/html_node/emacs/Debuggers.html#Debuggers link] <br />
to the emacs manual section on debuggers operation<br />
<br />
== ddd ==<br />
[http://www.gnu.org/software/ddd gui for gdb]<br />
<br />
[[Category:Development]]</div>132.204.236.96