gcd.rb:4 def gcd(a, b) # # *************************************************** # # This tests info command handling # # *************************************************** # set debuggertesting on Currently testing the debugger is on. # set callstyle last Frame call-display style is last. # help info Generic command for showing things about the program being debugged. -- List of info subcommands: -- info args -- Argument variables of current stack frame info breakpoints -- Status of user-settable breakpoints info catch -- Exceptions that can be caught in the current stack frame info display -- Expressions to display when program stops info file -- Info about a particular file read in info files -- File names and timestamps of files read in info global_variables -- Global variables info instance_variables -- Instance variables of the current stack frame info line -- Line number and file name of current position in source file info locals -- Local variables of the current stack frame info program -- Execution status of the program info stack -- Backtrace of the stack info thread -- List info about thread NUM info threads -- information of currently-known threads info variables -- Local and instance variables of the current stack frame # info args # info line Line 4 of "./gcd.rb" # info locals # info stack --> #0 at line gcd.rb:4 # info display There are no auto-display expressions now. # help info break Status of user-settable breakpoints. Without argument, list info about all breakpoints. With an integer argument, list info on that breakpoint. # help info display Expressions to display when program stops. # break 10 Breakpoint 1 file ./gcd.rb, line 10 # break 12 Breakpoint 2 file ./gcd.rb, line 12 # info break 10 *** No breakpoints found among list given. # info break 1 Num Enb What 1 y at gcd.rb:10 # info break 1 2 Num Enb What 1 y at gcd.rb:10 2 y at gcd.rb:12 # info break Num Enb What 1 y at gcd.rb:10 2 y at gcd.rb:12 # info file ./gcd.rb break File ./gcd.rb breakpoint line numbers: 4 6 6 7 10 10 12 12 13 15 18 # quit