Go to main content
Oracle® Developer Studio 12.6: Debugging a Program with dbx

Exit Print View

Updated: June 2017
 
 

Moving Up and Down the Stack

You can examine the local variables in functions other than the current one.

Moving Up the Stack

To move up the call stack (toward main) number levels:

up [-h] [ number ]

If you do not specify number, the default is one level. For more information, see up Command.

Moving Down the Stack

To move down the call stack (toward the current stopping point) number levels:

down [-h] [ number ]

If you do not specify number, the default is one level. For more information, see down Command.

Moving to a Specific Frame

The frame command is similar to the up command and down command. Use to go directly to the frame as given by numbers displayed by the where command.

frame
frame -h
frame [-h] number
frame [-h] +[number]
frame [-h] -[number]

The frame command without an argument displays the current frame number. With number, the command enables you to go directly to the frame indicated by the number. By including a + (plus sign) or - (minus sign), the command enables you to move an increment of one level up (+) or down (-). If you include a plus or minus sign with number, you can move up or down the specified number of levels. The -h option includes any hidden frames in the count.

You can also move to a specific frame using the pop command.