Ruby Programming/Standard Library/Debugger
< Ruby Programming < Standard LibraryDebugger
Ruby has a “pure ruby” debugger built right in. To use it:
ruby -rdebug script_name.rb
or
require 'debug' #somewhere in your script
If you’re on MRI, it is probably far recommended to use ruby-debug gem (which is in C, so faster), or, on 1.9, ruby-debug19 gem (same as ruby-debug gem, but written for 1.9). See a list of differences.
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.