可以检查非当前函数中的局部变量。
up [-h] [ number ] |
如果未指定 number,则缺省值为一级。有关更多信息,请参见up 命令。
down [-h] [ number ] |
如果未指定 number,则缺省值为一级。有关更多信息,请参见down 命令。
frame 命令与 up 命令和 down 命令类似。利用它可直接转到 where 命令显示的编号所指示的帧。
frame frame -h frame [-h] number frame [-h] +[number] frame [-h] -[number] |
如果执行 frame 命令时不使用参数,将显示当前帧编号。如果使用 number,则直接转到编号所指示的帧。在命令中加入 +(加号)或 -(减号)可向上 (+) 或向下 (-) 移动一级。如果在 number 中包括加号或减号,可以向上或向下移动指定数量的级别。- h 选项将所有隐藏帧都包括在计数中。
也可以使用 pop 命令移到特定帧(请参见弹出调用栈)。