What do people use to set debugging breakpoints in Rails4 with Ruby 1.9.3? I used to use rdebug but that doesn't work with Rails4 and ruby 1.9.3.
人们使用Ruby 1.9.3在Rails4中设置调试断点的方法是什么?我曾经使用过rdebug,但这与Rails4和ruby 1.9.3不兼容。
I've tried
我试过了
ruby-debug - doesn't install with ruby 1.9.3
byebug - needs ruby 2.0
ruby-debug-ide - get error = cannot load such file -- ruby-debug-base (LoadError)
1 个解决方案
#1
7
Use debugger. In general, do this
使用调试器。在一般情况下,这样做
ruby-debug - for ruby 1.8
debugger - for ruby 1.9
byebug - for ruby 2.0
and things should be fine.
事情应该是好的。
#1
7
Use debugger. In general, do this
使用调试器。在一般情况下,这样做
ruby-debug - for ruby 1.8
debugger - for ruby 1.9
byebug - for ruby 2.0
and things should be fine.
事情应该是好的。