[1.9/12928] problem with -r debug

O

Ollivier Robert

Hello,

I'm running 1.9 from svn (revision 12928) on OS X. I appreciate that
the hooks for the debugger have been put in place but trying to run a
program in it leads to this as soon as I hit "s" on some lines:

321 [9:40] roberto@roberto-al:HG/raw-scripts> /usr/local/bin/ruby -r
debug find-photos.rb ~/Documents
Debug.rb
Emacs support available.

find-photos.rb:20:$KCODE = "u"
(rdb:1) b main
Set breakpoint 1 at find-photos.rb:main
(rdb:1) c
0: ArgumentError

or

find-photos.rb:181: def keys
(rdb:1)
s
find-photos.rb:187: def [](base_name)
(rdb:1)
s
find-photos.rb:195:def main(argv)
(rdb:1)
s
find-photos.rb:216:if $0 == __FILE__ then
(rdb:1)
s
find-photos.rb:217: exit(main(ARGV) || 1)
(rdb:1)
s
0: ArgumentError

code fragment is

...
if $0 == __FILE__ then
exit(main(ARGV) || 1)
end

Any idea?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top