Sun Studio 12 Update 1: Debugging a Program With dbx

Commands With Identical Syntax and Functionality in Java Mode and Native Mode

The following dbx commands have the same syntax and perform the same operations in Java mode as in native mode.

Command  

Functionality  

attach

Attaches dbx to a running process, stopping execution and putting the program under debugging control

cont

Causes the process to continue execution 

dbxenv

List or set dbx environment variables

delete

Deletes breakpoints and other events 

down

Moves down the call stack (away from main)

dump

Prints all variables local to a procedure or method 

file

Lists or changes the current file 

frame

Lists or changes the current stack frame number 

handler

Modifies event handlers (breakpoints) 

import

Import commands from a dbx command library

line

Lists or changes the current line number 

list

Lists or changes the current line number 

next

Steps one source line (steps over calls) 

pathmap

Maps one path name to another for finding source files and such 

proc

Displays the status of the current process 

prog

Manages programs being debugged and their attributes 

quit

Exits dbx

rerun

Runs the program with no arguments 

runargs

Changes the arguments of the target process 

status

Lists the event handlers (breakpoints) 

step up

Steps up and out of the current function or method 

stepi

Steps one machine instruction (steps into calls) 

up

Moves up the call stack (toward main)

whereami

Displays the current source line