From: Jorge Domenico Bucaran Romano Date: 2007-05-25T13:18:06+09:00 Subject: Re: Ruby - Debugging It is not working 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) help Debugger help v.-0.002b Commands b[reak] [file:|class:] b[reak] [class.] set breakpoint to some position wat[ch] set watchpoint to some expression cat[ch] (|off) set catchpoint to an exception b[reak] list breakpoints cat[ch] show catchpoint del[ete][ nnn] delete some or all breakpoints disp[lay] add expression into display expression list undisp[lay][ nnn] delete one particular or all display expressions c[ont] run until program ends or hit breakpoint s[tep][ nnn] step (into methods) one line or till line nnn n[ext][ nnn] go over one line or till line nnn w[here] display frames f[rame] alias for where l[ist][ (-|nn-mm)] list program, - lists backwards nn-mm lists given lines up[ nn] move to higher frame down[ nn] move to lower frame fin[ish] return to outer frame tr[ace] (on|off) set trace mode of current thread tr[ace] (on|off) all set trace mode of all threads q[uit] exit from debugger v[ar] g[lobal] show global variables v[ar] l[ocal] show local variables v[ar] i[nstance] show instance variables of object v[ar] c[onst] show constants of object m[ethod] i[nstance] show methods of object m[ethod] show instance methods of class or module th[read] l[ist] list all threads th[read] c[ur[rent]] show current thread th[read] [sw[itch]] switch thread context to nnn th[read] stop stop thread nnn th[read] resume resume thread nnn p expression evaluate expression and print its value h[elp] print this help evaluate (rdb:1) b c:\users\jbucaran\desktop\demo2.rb C:/Program Files/Ruby/lib/ruby/site_ruby/1.8/ubygems.rb:10:compile error C:/Program Files/Ruby/lib/ruby/site_ruby/1.8/ubygems.rb:10: syntax error, unexpe cted $undefined, expecting tSTRING_CONTENT or tSTRING_DBEG or tSTRING_DVAR or tS TRING_END c:\users\jbucaran\desktop\demo2 ^ (rdb:1) Set breakpoint 1 at c:\users\jbucaran\desktop\demo2.rb:1 C:/Program Files/Ruby/lib/ruby/site_ruby/1.8/ubygems.rb:10: warning: parenthesiz e argument(s) for future version C:/Program Files/Ruby/lib/ruby/site_ruby/1.8/ubygems.rb:10:compile error C:/Program Files/Ruby/lib/ruby/site_ruby/1.8/ubygems.rb:10: syntax error, unexpe cted tIDENTIFIER, expecting $end Set breakpoint 1 at c:\users\jbucaran\desktop\demo2.rb:1 ^ (rdb:1) -- Posted via http://www.ruby-forum.com/.