8.5 Debugger commands

8.5.2 Moving Around the Stack

Recall that upon entry to the debugger the current frame is the one at the top of the execution stack. There are commands to move to the top and bottom of the stack, to move up or down it by a certain number of frames, and to move to a frame representing an invocation of a particular function.

In the descriptions below, the | symbol should be read as meaning that one or the other of the arguments either side of it can be used.

:> Debugger command

This command sets the current frame to the one at the bottom of the stack.

:< Debugger command

This command sets the current frame to the one at the top of the stack.

:p [m | fn-name] Debugger command

The command :p alone makes the previous frame on the stack the current one. It is said to 'move up' to the previous frame.

If it is followed by a number, m, it moves m frames up the stack. If it is followed by a function name, fn-name, it moves to the previous call frame for that function.

:n [m | fn-name] Debugger command

The command :n alone moves to the next frame down the stack. It can also move m frames down the stack, or to the next call frame for the function fn-name.


FreeLisp User's Guide - 5 FEB 1996

Generated with Harlequin WebMaker