https://github.com/cldwalker/ripl-debug
A ripl plugin that automatically passes a failed eval to ruby-debug
https://github.com/cldwalker/ripl-debug
Last synced: about 1 year ago
JSON representation
A ripl plugin that automatically passes a failed eval to ruby-debug
- Host: GitHub
- URL: https://github.com/cldwalker/ripl-debug
- Owner: cldwalker
- License: mit
- Created: 2010-12-04T08:00:06.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2011-03-11T14:35:23.000Z (over 15 years ago)
- Last Synced: 2025-03-20T10:44:16.780Z (about 1 year ago)
- Language: Ruby
- Size: 97.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
- Changelog: CHANGELOG.rdoc
- License: LICENSE.txt
Awesome Lists containing this project
README
== Description
This ripl plugin automatically starts the debugger whenever an evaled input throws an exception.
The debugger is started at the source of the exception.
== Install
If on ruby 1.8, install the gem with:
gem install ripl-debug ruby-debug
If on ruby 1.9, install the gem with:
gem install ripl-debug ruby-debug19
== Usage
To debug some suspect code
$ ripl debug -rsome/buggy/code
This plugin can be turned off in the console at any time with:
>> Ripl.config[:debug] = false
== Limitations
This gem doesn't have ruby-debug as a dependency since ruby-debug is split across two gems
(ruby-debug and ruby-debug19), dependent on ruby versions. This gem will work with either one.