Ilaria Bartolini
This presentation is the property of its rightful owner.
Sponsored Links
1 / 3

Java Debug (jdb) PowerPoint PPT Presentation


  • 42 Views
  • Uploaded on
  • Presentation posted in: General

Ilaria Bartolini. Java Debug (jdb). ** DEBUG command list ** threads [threadgroup] -- list threads thread <thread id> -- set default thread suspend [thread id(s)] -- suspend threads(default:all) resume [thread id(s)] -- resume threads(default:all)

Download Presentation

Java Debug (jdb)

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Java debug jdb

Ilaria Bartolini

Java Debug (jdb)

** DEBUG command list **

threads [threadgroup] -- list threads

thread <thread id> -- set default thread

suspend [thread id(s)] -- suspend threads(default:all)

resume [thread id(s)] -- resume threads(default:all)

where [thread id] | all -- dump a thread's stack

wherei [thread id] | all -- dump a thread's stack, with

pc info

threadgroups -- list threadgroups

threadgroup <name> -- set current threadgroup

print <id> [id(s)] -- print object or field

dump <id> [id(s)] -- print all object information

locals -- print all local variables in

current stack frame


Java debug jdb

Ilaria Bartolini

Java Debug (jdb)

classes -- list currently known classes

methods <class id> -- list a class's methods

stop in <class id>.<method>[(argument_type,...)]

-- set a breakpoint in a method

stop at <class id>:<line>-- set a breakpoint at a line

up [n frames] -- move up a thread's stack

down [n frames] -- move down a thread's stack

clear <class id>.<method>[(argument_type,...)]

-- clear a breakpoint in a method

clear <class id>:<line> -- clear a breakpoint at a line

step -- execute current line

step up -- execute until the current

method returns to its caller

stepi -- execute current instruction

next -- step one line (step OVER calls)

cont -- continue execution from

breakpoint


Java debug jdb

Ilaria Bartolini

Java Debug (jdb)

catch <class id> -- break for the specified exception

ignore <class id> -- ignore when the specified exception

list [line number|method]-- print source code

use [source file path] -- display or change the source path

memory -- report memory usage

gc -- free unused objects

load classname -- load Java class to be debugged

run <class> [args] -- start execution of a loaded Java class

!! -- repeat last command

help (or ?) -- list commands

exit (or quit) -- exit debugger


  • Login