help-octave
[Top][All Lists]
Advanced

[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

test(inputs)

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


--
View this message in context: 
http://www.nabble.com/Debugger-tf4835684.html#a13834420
Sent from the Octave - General mailing list archive at Nabble.com.

_______________________________________________
Help-octave mailing list
address@hidden
https://www.cae.wisc.edu/mailman/listinfo/help-octave



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.

dbstop('test',string_of_line_number)
dbclear('test', string_of_line_number)
dbstatus
   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]