GNU DDD 3.2.91 (sparc-sun-solaris2.6) Copyright (C) 1995-1999 Technische Universität Braunschweig, Germany. Copyright (C) 1999-2000 Universität Passau, Germany. Compiled with GCC 2.95.2 19991024 (release), libstdc++ 2.8.0 Requires X11R6, Xt11R6, Motif 1.2.6 (OSF/Motif Version 1.2.6) Includes XPM 3.4.11, Athena Panner, DDD core Built 2000-10-09 by Thomas Willhalm . $ ddd-3.2.91 Calc + /bin/sh -c 'exec jdb '\''Calc'\''' # Hello, world! # Starting JDB... # Enabling core dumps... # Enabling core dumps...done. # Running JDB (pid 18163, tty /dev/pts/6)... # Current language: Java # Searching "vsllib/ddd.vsl"... # Trying "/home/xinf/willhalm/.ddd/vsllib/ddd.vsl" # Trying "/usr/local/X11R6/ddd-3.2.91/share/ddd-3.2.91/vsllib/ddd.vsl" # Searching "vsllib/ddd.vsl"..."/usr/local/X11R6/ddd-3.2.91/share/ddd-3.2.91/vsllib/ddd.vsl". <- "Initializing jdb...\n" <- "> " -> "# reset\n" <- "Command \'#\' is not valid until the VM is started with the \'run\' command\n" "> " -> "help\n" <- "** command list **\n" "run [class [args]] -- start execution of application\'s main class\n" "\n" "threads [threadgroup] -- list threads\n" "thread -- set default thread\n" "suspend [thread id(s)] -- suspend threads (default: all)\n" "resume [thread id(s)] -- resume threads (default: all)\n" "where [thread id] | all -- dump a thread\'s stack\n" "wherei [thread id] | all -- dump a thread\'s stack, with pc info\n" "up [n frames] -- move up a thread\'s stack\n" "down [n frames] -- move down a thread\'s stack\n" "kill -- kill a thread with the given exception object\n" "interrupt -- interrupt a thread\n" "\n" "print -- print value of expression\n" "dump -- print all object information\n" "eval -- evaluate expression (same as print)\n" "set = -- assign new value to field/variable/array element\n" "locals -- print all local variables in current stack frame\n" "\n" "classes -- list currently known classes\n" "class -- show details of named class\n" "methods -- list a class\'s methods\n" "fields -- list a class\'s fields\n" "\n" "threadgroups -- list threadgroups\n" "threadgroup -- set current threadgroup\n" "\n" "stop in .[(argument_type,...)]\n" " -- set a breakpoint in a method\n" "stop at : -- set a breakpoint at a line\n" "clear .[(argument_type,...)]\n" " -- clear a breakpoint in a method\n" "clear : -- clear a breakpoint at a line\n" "clear -- list breakpoints\n" "catch -- break when specified exception thrown\n" "ignore -- cancel \'catch\' for the specified exception\n" "watch [access|all] .\n" " -- watch access/modifications to a field\n" "unwatch [access|all] .\n" " -- discontinue watching access/modifications to a field\n" "trace methods [thread] -- trace method entry and exit\n" "untrace methods [thread] -- stop tracing method entry and exit\n" "step -- execute current line\n" "step up -- execute until the current method returns to its caller\n" "stepi -- execute current instruction\n" "next -- step one line (step OVER calls)\n" "cont -- continue execution from breakpoint\n" "\n" "list [line number|method] -- print source code\n" "use (or sourcepath) [source file path]\n" " -- display or change the source path\n" "exclude [class id ... | \"none\"]\n" " -- do not report step or method events for specified classes\n" "classpath -- print classpath info from target VM\n" "\n" "monitor -- execute command each time the program stops\n" "monitor -- list monitors\n" "unmonitor -- delete a monitor\n" "read -- read and execute a command file\n" "\n" "lock -- print lock info for an object\n" "threadlocks [thread id] -- print lock info for a thread\n" "\n" "disablegc -- prevent garbage collection of an object\n" "enablegc -- permit garbage collection of an object\n" "\n" "!! -- repeat last command\n" " -- repeat command n times\n" "help (or ?) -- list commands\n" "version -- print version information\n" "exit (or quit) -- exit debugger\n" "\n" ": full class name with package qualifiers or a \n" "pattern with a leading or trailing wildcard (\'*\').\n" ": thread number as reported in the \'threads\' command\n" ": a Java(tm) Programming Language expression.\n" "Most common syntax is supported.\n" "\n" "Startup commands can be placed in either \"jdb.ini\" or \".jdbrc\"\n" "in user.home or user.dir\n" "> " # Loading class "Calc"... # Searching for "Calc" source... -> "use\n" <- ".\n" "> " # Searching for "Calc" source..."Calc.java". # Reading file "/home/xinf/willhalm/java/Calc.java"... # Reading file "/home/xinf/willhalm/java/Calc.java"...done. # Loading class "Calc"...done. # File "/home/xinf/willhalm/java/Calc.java" 41 lines, 747 characters -> "load Calc\n" <- "Command \'load\' is not valid until the VM is started with the \'run\' command\n" "> " # Starting JDB...done. # Welcome to DDD 3.2.91 "Da da da" (sparc-sun-solaris2.6) -> "stop at Calc:24\n" <- "Deferring breakpoint Calc:24.\n" "It will be set after the class is loaded.\n" "> " -> "clear\n" <- "Breakpoints set:\n" "\tbreakpoint Calc:24" <- "\n" "> " -> "run\n" <- "run Calc\n" <- "\n" "VM Started: " <- "> " <- "Set deferred breakpoint Calc:24" <- "\n" <- "\n" "Breakpoint hit: " <- "thread=\"main\"" <- ", " <- "Calc.fibonacci(), line=24, bci=0" <- "\n" <- " 24 \t if (n==0) return 1;" <- "\n" <- "\n" <- "main[1] " -> "dump n\n" <- " n = 35" <- "\n" <- "main[1] " -> "print n\n" <- " n = 35\n" "main[1] " -> "where\n" <- " [1] Calc.fibonacci (Calc.java:24)\n" " [2] Calc.main (Calc.java:14)\n" "main[1] " -> "\n" <- "main[1] " -> "dump n\n" <- " n = 35\n" "main[1] " -> "quit\n" # Running JDB (pid 18163, tty /dev/pts/6)...Exit 0. # Saving history in "/home/xinf/willhalm/.ddd/history"... # Saving history in "/home/xinf/willhalm/.ddd/history"...done. # Thanks for using DDD 3.2.91!