A sample app for debugging Ruby using Rookout.
- ruby 2.7 or later.
- rails 6.0.0 or later
- CLone the sample app from this repository.
git clone https://github.com/Rookout/tutorial-ruby.git
cd tutorial-ruby
- Set your Rookout token as an environment variable (for Windows, use set instead of export)
export ROOKOUT_TOKEN=[Your Rookout Token]
- Run the app:
bundle install
rails server
the app will now run on https://localhost:3000/
- Log in to Rookout
- Select your tutorial-ruby server and add the source code.
- Open the file
app/controllers/tasks_controller.rb
and set a breakpoint in line 35. - Browse to your localhost and add a todo item to the list.
- Come back to Roookout and check the bottom messages pane. You'll see the snapshot you just added, as it was triggered by the handler of the web api when you added a todo.
- Our website for more information
- Our documentation for more information