13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5.9 The Java Debugger149Example 5.16 The Java debugger help command output$ jdb GetUserInitializing jdb ...> help** command list **run [class [args]]-- start executi<strong>on</strong> of applicati<strong>on</strong>'s main classthreads [threadgroup] -- list threadsthread -- set default threadsuspend [thread id(s)] -- suspend threads (default: all)resume [thread id(s)] -- resume threads (default: all)where [thread id] | all -- dump a thread's stackwherei [thread id] | all -- dump a thread's stack, with pc infoup [n frames]-- move up a thread's stackdown [n frames]-- move down a thread's stackkill -- kill a thread with the given excepti<strong>on</strong> objectinterrupt -- interrupt a threadprint dump eval set = localsclassesclass methods fields threadgroupsthreadgroup -- print value of expressi<strong>on</strong>-- print all object informati<strong>on</strong>-- evaluate expressi<strong>on</strong> (same as print)-- assign new value to field/variable/array element-- print all local variables in current stack frame-- list currently known classes-- show details of named class-- list a class's methods-- list a class's fields-- list threadgroups-- set current threadgroupstop in .[(argument_type,...)]-- set a breakpoint in a methodstop at : -- set a breakpoint at a lineclear .[(argument_type,...)]-- clear a breakpoint in a methodclear : -- clear a breakpoint at a lineclear-- list breakpointscatch [uncaught|caught|all] -- break when specified excepti<strong>on</strong> occursignore [uncaught|caught|all] -- cancel 'catch' for the specified excepti<strong>on</strong>watch [access|all] .-- watch access/modificati<strong>on</strong>s to a fieldunwatch [access|all] .-- disc<strong>on</strong>tinue watching access/modificati<strong>on</strong>s to a fieldtrace methods [thread] -- trace method entry and exit

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!