dbup
dbup n
| Parameter | Description |
|---|---|
| n | positive integer scalar specifying the number of levels to move up on the call stack. |
dbup changes the current workspace and function context to that of the calling function or script while in debug mode. This allows inspection of the caller workspace to understand how input arguments were produced.
Each call to dbup moves one level up the call stack, stopping at the base workspace. Execution can continue without returning to the original paused line.
dbup n is equivalent to executing dbup n times.
This function can only be called from the command line while debugging.
function n = myfile(x)
n = myfunc(x - 1);
end
function z = myfunc(y)
z = 2 / y;
end
dbstop in myfile>myfunc
myfile(1)
dbup
whos
dbup 2
| Version | Description |
|---|---|
| 1.16.0 | initial version |