| MATLAB Function Reference | Search  Help Desk |
| dbstack | Examples See Also |
Syntax
dbstack [ST,I] = dbstack
Description
dbstack
displays the line numbers and M-file names of the function calls that led to the current breakpoint, listed in the order in which they were executed. In other words, the line number of the most recently executed function call (at which the current breakpoint occurred) is listed first, followed by its calling function, which is followed by its calling function, and so on, until the topmost M-file function is reached.
[ST,I] = dbstack
returns the stack trace information in an m-by-1 structure ST with the fields:name |
Function name |
line |
Function line number |
I.
Examples
dbstack In /usr/local/matlab/toolbox/matlab/cond.m at line 13 In test1.m at line 2 In test.m at line 3
See Also
dbclear, dbcont, dbdown, dbquit, dbstatus, dbstep, dbstop, dbtype, dbup