Navigation

Operators and Keywords

Function List:

C++ API

: keyboard ()
: keyboard ("prompt")

Stop m-file execution and enter debug mode.

When the keyboard function is executed, Octave prints a prompt and waits for user input. The input strings are then evaluated and the results are printed. This makes it possible to examine the values of variables within a function, and to assign new values if necessary. To leave the prompt and return to normal execution type ‘return’ or ‘dbcont’. The keyboard function does not return an exit status.

If keyboard is invoked without arguments, a default prompt of ‘debug> ’ is used.

See also: dbstop, dbcont, dbquit.

Package: octave