System.out.println()
)>jdb MainClass
MainClass
represents the name of your class.jdb [options] [classname] [arguments]
>appletviewer -debug URL
>run [class [args]]
>cont
print
command is used to display the value of expressions whereas dump command is used to display the information of objects. stop in Classname.MethodName
stop at Classname: LineNumber
scrollDown()
. To set a breakpoint on scrollDown()
method, you need to follow the below command :>stop in Javatpoint.scrollDown
JDB
, Stepping is a procedure to execute the code line by line. Thus, through this approach, each line of the code can be properly examined.