"Yukihiro Matsumoto" <matz / ruby-lang.org> schrieb im Newsbeitrag news:1090312949.825866.21834.nullmailer / picachu.netlab.jp... > Hi, > > In message "Ruby Debugger options: v[ar] g[lobal] ..." > on 04/07/18, "jay" <jay / fleeingrabbit.com> writes: > > |The "display variables" commands, however, aren't doing what I expect... The documentation lists > |them like so: > | > | v[ar] g[lobal] show global variables > | v[ar] l[ocal] show local variables > | > |...but when I type 'v g', I get the error message: > | > | 1undefined local variable or method `g' for main:Object > > I can't reproduce your problem. More information please. > How you compiled/installed your Ruby, the version, etc. Does this help? 13:26:35 [source]: uname -a CYGWIN_NT-5.0 bond 1.5.7(0.109/3/2) 2004-01-30 19:32 i686 unknown unknown Cygwin 13:26:53 [source]: ruby --version ruby 1.8.1 (2003-12-25) [i386-cygwin] 13:26:57 [source]: ruby -rdebug -e '$foo="x";bar="y";1000.times {|i| puts i }' Debug.rb Emacs support available. -e:1:$foo="x";bar="y";1000.times {|i| puts i } (rdb:1) $foo nil (rdb:1) s -e:1:$foo="x";bar="y";1000.times {|i| puts i } (rdb:1) $foo "x" (rdb:1) v foo -e:1:(eval):1undefined local variable or method `foo' for main:Object (rdb:1) v g foo (eval):1: warning: parenthesize argument(s) for future version -e:1:(eval):1undefined local variable or method `foo' for main:Object (rdb:1) bar nil (rdb:1) v bar -e:1:(eval):1undefined method `v' for main:Object (rdb:1) step -e:1:$foo="x";bar="y";1000.times {|i| puts i } (rdb:1) bar "y" (rdb:1) v bar -e:1:(eval):1undefined method `v' for main:Object (rdb:1) q Really quit? (y/n) y Dunno whether this is related to readline built in or not. Regards robert