Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined local variable exits rdebug #5

Open
karatedog opened this issue Apr 10, 2011 · 0 comments
Open

undefined local variable exits rdebug #5

karatedog opened this issue Apr 10, 2011 · 0 comments

Comments

@karatedog
Copy link

Is it a normal behavior that rdebug exits to prompt when encountering an undefined variable?

I have a one-liner ruby script.
$ rdebug rdebug_test.rb
/home/karatedog/work/projects/ruby_stuff/mandelbrot/rdebug_test.rb:1
puts nonexistent_variable
(rdb:1) n
/home/karatedog/work/projects/ruby_stuff/mandelbrot/rdebug_test.rb:1:in <top (required)>' /var/lib/gems/1.9.1/gems/ruby-debug19-0.11.6/bin/rdebug:125:indebug_load'
/var/lib/gems/1.9.1/gems/ruby-debug19-0.11.6/bin/rdebug:125:in debug_program' /var/lib/gems/1.9.1/gems/ruby-debug19-0.11.6/bin/rdebug:412:in<top (required)>'
/var/lib/gems/1.9.1/bin/rdebug:19:in load' /var/lib/gems/1.9.1/bin/rdebug:19:in

'
Uncaught exception: undefined local variable or method `nonexistent_variable' for main:Object

I'm not a ruby guru, did I miss something?

@karatedog karatedog reopened this Apr 10, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant