Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hashnuke/take_a_look
A try a writing a simple ruby debugger
https://github.com/hashnuke/take_a_look
Last synced: 24 days ago
JSON representation
A try a writing a simple ruby debugger
- Host: GitHub
- URL: https://github.com/hashnuke/take_a_look
- Owner: HashNuke
- Created: 2012-05-12T05:50:50.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-05-12T06:40:12.000Z (over 12 years ago)
- Last Synced: 2024-10-04T21:34:36.793Z (about 1 month ago)
- Language: Ruby
- Size: 97.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# take-a-look
This gem is a try at writing a simple Ruby debugger detailed on my blog
## Install
gem install take-a-look
# Usage
* When you want to debug some program, just drop the following line in the place you want to inspect.
binding.take_a_look
* That will start a REPL in which you can play with the constants and values of variables set in the program.
* If you feel that it's a lengthy method name, `binding.peep` also works.
Enjoy!
## Notes
* It's all less than 10 lines + a test case.
* This gem was written in 13 minutes (not that I'm proud of it).