[Top][All Lists]

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

Re: Debugger

From: John Swensen
Subject: Re: Debugger
Date: Wed, 21 Nov 2007 15:03:09 -0500

On Nov 19, 2007, at 6:35 AM, John Jones wrote:

I'm trying (and failing) to get the Octave debugger to work. I would like to
step through an m - file.

The m - files file name is


how do you set break points and step though. I've tried the manual without

View this message in context:
Sent from the Octave - General mailing list archive at

Help-octave mailing list

You can use the command line breakpoint functions: dbstop, dbclear, dbstatus, and dbcont. You can use the help command to see how they work, but here is a quick synopsis.

dbclear('test', string_of_line_number)
   this will return a list of breakpoints

First, are you using the latest version from CVS, or a version from some sort of repository or installer? The latest version from CVS has a syntax *more* similar to Matlab. For example, the line numbers can be passed in as an integer or integer array, rather than as a string. Also, if you assign dbstatus to a variable, then it will be a structure array with a list of functions, file names, and lines numbers of breakpoints.

John Swensen

reply via email to

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