From: Jorge Domenico Bucaran Romano Date: 2007-05-25T12:12:41+09:00 Subject: Re: Ruby - Debugging Alex Gutteridge wrote: > On 25 May 2007, at 11:37, Jorge Domenico Bucaran Romano wrote: > >>> (rdb:1) help >>> Debugger help v.-0.002b >>> Commands >>> -- > > [snip] > >> 'rubygems' >> (rdb:1) >> >> Help me I am clueless! > > The debugger is running and now you need to use it. Type help (as > shown above) to get a list of commands. You probably want to set > breakpoints at certain places in your script and then continue to > there using 'c' before you step through using 'n' or 's'. Googling > for 'ruby debugger' gives me the Pickaxe chapter on debugging which > is a good starting point if none of this makes sense. > > Alex Gutteridge > > Bioinformatics Center > Kyoto University I prefer using the Ruby default debugger since I am planning to build a GUI for it, the minimal functionality. I try to use the debugger but it just seems to be in the wrong file look at this: C:\Users\jbucaran>ruby -rdebug c:\users\jbucaran\desktop\demo2.rb Debug.rb Emacs support available. C:/Program Files/Ruby/lib/ruby/site_ruby/1.8/ubygems.rb:10:require 'rubygems' (rdb:1) list [5, 14] in C:/Program Files/Ruby/lib/ruby/site_ruby/1.8/ubygems.rb 5 # All rights reserved. 6 # See LICENSE.txt for permissions. 7 #++ 8 9 => 10 require 'rubygems' (rdb:1) list all [-5, 4] in C:/Program Files/Ruby/lib/ruby/site_ruby/1.8/ubygems.rb 1 # This file allows for the running of rubygems with a nice 2 # command line look-and-feel: ruby -rubygems foo.rb 3 #-- 4 # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. (rdb:1) -- Posted via http://www.ruby-forum.com/.