https://github.com/bernardoamc/ruby_debugging
Familiarize yourself with common Ruby idioms and debugging tools
https://github.com/bernardoamc/ruby_debugging
debugging ruby
Last synced: 3 months ago
JSON representation
Familiarize yourself with common Ruby idioms and debugging tools
- Host: GitHub
- URL: https://github.com/bernardoamc/ruby_debugging
- Owner: bernardoamc
- Created: 2019-08-29T15:47:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-28T14:13:54.000Z (over 2 years ago)
- Last Synced: 2025-02-25T20:43:23.553Z (12 months ago)
- Topics: debugging, ruby
- Language: Ruby
- Size: 17.6 KB
- Stars: 29
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ruby Debugging
Welcome to the Ruby Debugging repository. The goal of this repository is to get
you familiar with common debugging tools and idioms. At the end of it I hope you
will have a better understanding of Ruby itself.
Each exercise will present new idioms or reinforce existing ones.
Topics covered:
* [ruby/debug](https://github.com/ruby/debug)
* ancestors
* singleton_class.ancestors
* methods
* methods.grep
* instance_variables
* instance_methods
* public_methods
* private_methods
* method(:method_name).source_location
* method(:method_name).super_method.source_location
* backtrace
* caller
* [TracePoint](https://ruby-doc.org/core-2.6/TracePoint.html)
## Requirements
* Ruby version `3.1.0` or higher
* `bundle install --path vendor/bundle`
## Instructions
1. Clone this repository
2. Work your way through each level, for example:
* `cd 01/`
* `bundle exec ruby main.rb`
> **Warning**
> Do not forget to `bundle install --path vendor/bundle` and to run the examples with `bundle exec`
Every problem has an associated `README.md` file with instructions and hints. Pay special attention to the "New concepts" section and try to replicate thre commands since it will introduce new concepts that you might not be familiar with and will help you through your debugging journey.
> **Warning**
> Do not forget to `cd` into each challenge folder.
## Expected Output
Every solved exercise should include the following output.
```bash
Framework: Ruby
Version: 3.2.2
Workshop: Ruby debugging
```
## Reading Material
* [Ruby-Doc.org](https://ruby-doc.org/)
* [Metaprogramming Ruby](https://pragprog.com/book/ppmetr2/metaprogramming-ruby-2)
* [I am a puts debuggerer](https://tenderlovemaking.com/2016/02/05/i-am-a-puts-debuggerer.html)
* [Ruby Debugging Magic Cheat Sheet](https://www.schneems.com/2016/01/25/ruby-debugging-magic-cheat-sheet.html)
* [Debugging Rails Applications](https://edgeguides.rubyonrails.org/debugging_rails_applications.html)
## Contributing
* Open an Issue or Pull Request
* Reach out [@bernardo_amc](https://twitter.com/bernardo_amc) on Twitter