help-octave
[Top][All Lists]
Advanced

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

Re: More questions about debugging


From: jfl
Subject: Re: More questions about debugging
Date: Thu, 22 Jul 2004 12:24:31 -0700 (PDT)

The "keyboard" command?

> Kalle,
> 
> For normal day-to-day debugging, I've found that the use of what you call
> the "temporary.m" approach works well. I enter the "temporary.m" commands in
> my favorite editor in one window, then type "temporary" in an octave
> terminal window that is positioned to the same directory. Octave is good at
> telling you where it quit and why. You can click back to the still open
> editor, make your changes, save them, and click back to the octave window
> and hit up-arrow, return to test the changes. You can work back and forth
> between the two open windows until it works. The additional advantage is
> that you save what you did for future use. I seldom work in the octave
> window alone.
> 
> How about it? Does anyone do it differently?
> 
> Joe Koski (aka Jorma Koski)
> 
> on 7/22/04 11:53 AM, Kalle Raiskila at address@hidden wrote:
> 
> > Continuing this message:
> > http://www.octave.org/mailing-lists/help-octave/2004/1620
> > 
> > 
> > Is it possible to debug files instead of functions?
> > If I'm writing a file, say, temporary.m  as simply a list of commands
> > (in contrast to a reusable function), it feels somewhat awkvard to have
> > to define "function temporary()" just to be able to debug it.
> > 
> > Also, the dbstop-function seems to want the linenumber of executable
> > line, not the "real" line (which it returns). Well, its much simpler for
> > me (and propably all text-editors I know of) to tell which "real" line
> > I want the breakpoint at. To calculate which "command"-line it is, can
> > be quite painful...(especially the way I write code ;) )
> > 
> > Am I missing some option, or is it just impossible to do
> > dbstop("file.m", "<real-line-no>") ?
> > 
> > Thanks
> > Kalle Raiskila
> > 
> > 
> > --
> > For a GUI/IDE for octave, take a look at www.hut.fi/u/kraiskil/yaog.html




-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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