Sunday, 15 September 2013

ruby on rails - Debugger does not work in Rake task -



ruby on rails - Debugger does not work in Rake task -

i'm using ruby 2.1.0 , rails 4.1.0

if set debugger statement anywhere in rake code, this:

home/vagrant/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/monitor.rb:213 mon_exit [208, 217] in /home/vagrant/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/monitor.rb 208 def mon_synchronize 209 mon_enter 210 begin 211 yield 212 ensure => 213 mon_exit 214 end 215 end 216 alias synchronize mon_synchronize 217 (rdb:1)

i cannot access of local variables in code. monitor appears threading library... how debugger statement run properly?

the issue putting "debugger" @ end of method, create homecoming value.

the fix... don't set debugger @ end of method.

ruby-on-rails debugging

No comments:

Post a Comment