The following dbx commands have different syntax for Java debugging than for native code debugging, and operate differently in Java mode than in native mode.
Command |
Native Mode Functionality |
Java Mode Functionality |
---|---|---|
assign |
Assigns a new value to a program variable |
Assigns a new value to a local variable or parameter |
call |
Calls a procedure |
Calls a method |
dbx |
Starts dbx |
Starts dbx |
debug |
Loads the specified application and begins debugging the application |
Loads the specified Java application, checks for the existence of the class file, and begins debugging the application |
detach |
Releases the target process from dbx’s control |
Releases the target process from dbx’s control |
display |
Evaluates and prints expressions at every stopping point. |
Evaluates and prints expressions, local variables, or parameters at every stopping point |
files |
Lists file names that match a regular expression |
Lists all of the Java source files known to dbx |
func |
Lists or changes the current function |
Lists or changes the current method |
next |
Steps one source line (stepping over calls) |
Steps one source line (stepping over calls) |
|
Prints the value of an expression |
Prints the value of an expression, local variable, or parameter. |
run |
Runs the program with arguments |
Runs the program with arguments |
step |
Steps one source line or statement (stepping into calls) |
Steps one source line or statement (stepping into calls) |
stop |
Sets a source-level breakpoint |
Sets a source-level breakpoint |
thread |
Lists or changes the current thread |
Lists or changes the current thread |
threads |
Lists all threads |
Lists all threads |
trace |
Shows executed source lines, function calls, or variable changes |
Shows executed source lines, function calls, or variable changes |
undisplay |
Undoes display commands |
Undoes display commands |
whatis |
Prints the type of expression or declaration of type |
Prints the declaration of an identifier |
when |
Executes commands when a specified event occurs |
Executes commands when a specified event occurs |
where |
Prints the call stack |
Prints the call stack |