What do you guys use for debugging in ruby 1.9? rdebug doesn't seem to be compatible.. is there anything out there?
相关问题
- Pass custom debug information to Microsoft bot fra
- How to specify memcache server to Rack::Session::M
- Why am I getting a “C compiler cannot create execu
- reference to a method?
- ruby 1.9 wrong file encoding on windows
相关文章
- Ruby using wrong version of openssl
- Difference between Thread#run and Thread#wakeup?
- how to call a active record named scope with a str
- “No explicit conversion of Symbol into String” for
- Segmentation fault with ruby 2.0.0p247 leading to
- How to detect if an element exists in Watir
- uninitialized constant Mysql2::Client::SECURE_CONN
- How do I get to see DbgPrint output from my kernel
Netbeans is a good IDE for RoR. Good debugger too.
The ruby 1.9.1-p243 version is out and compitable ruby-debug-ide is also working properly. Install ruby-debug-ide using the following command:
This will install the ruby-debug-base19 and ruby-debug-ide gems. But before this make sure you install the mingw successfully by following the Development kit docs available from RubyForge.
doesn't anyone use: ruby -rdebug script.rb
then you can use: b script.rb:## (where ## is the line number of a valid ruby command) otherwise you are going to maybe be in the middle of rubygems or one of your required chunks of code.
Then you can simply set the next breakpoint as b:##
If you still have a problem after installing ruby-debug19 try updating ruby-debug-base19. I had errors and couldn't run WEBrick in debug mode until I did that.
Oh, and thanks Mr. Moseley for all your hard work!
I used following and it works great for me:
gem 'debugger', group: [:development, :test]
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] rails 3.2.8
There is a lot of choices, depending on your needs.
I use pry-moves because I can "look back" into what happened inside of previous command by re-executing them in debug mode right from the place.