help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debug


From: David Grohmann
Subject: Re: Debug
Date: Mon, 11 Jun 2007 12:59:29 -0500
User-agent: Thunderbird 1.5.0.12 (Windows/20070509)

Steve Thompson wrote:
On 6/11/07, <address@hidden> wrote:
  
I'd like to debug an M file. I'm used to the matlab environment
dedicated to the debugging mode.  Unfortunatelly, I can't find
information on how to debug an M file with octave (my editor is
SciTE - I d'on't know if it's or not relevant)

Could you help me or advice me any site on this topic?
    

>From what I hear, Octave does not have the number of debugging
features Matlab has.  Practically, I have zero experience using
Matlab's debugging features, but I get by using simple things to
weed out errors using Octave.  Really simple-minded things like
using the pause command, the return command, printing-to-screen
variables and listening to what Octave is telling me ("something
is wrong with line 312"), etc.  This is how I debug m-files.

As a totally a personal matter, I use two terminals (Konsole):
one for editing the m-file (using Vim), the other dedicated to
the Octave prompt.

Good luck.

Steve
_______________________________________________
Help-octave mailing list
address@hidden
https://www.cae.wisc.edu/mailman/listinfo/help-octave
  
typically the error messages give you a  good idea where to sprinkle a few 'keyboard' statements in your code, and then you can use, 'dbstep' and 'dbcont' to go thorugh your code just liek in matlab, though 'dbstep' in octave seems to be stepping through the actual parsing of m files which I think is the wrong abstraction, instead of statements, and also I don't know of a way to step over vs step into in octave.

I just have the octave prompt side by side with the text of the .m file and correlate the 2 in my head, 'dbwhere' *sometimes* gets it right as to which line you are on as well. a lot of the time it will say filename.m : -1  instead of a line number.


-- 
David Grohmann
Senior Student Associate
Applied Research Lab : UT Austin : ESL - S206
Office: 512-835-3237


reply via email to

[Prev in Thread] Current Thread [Next in Thread]