Debugging Ruby Errors

Ruby stack trace errors surface up to the Lambda Console.


Here’s an example of Ruby code throwing an intentional error:

class PostsController < ApplicationController
  # ...
  def ruby_example_error
    render json: {message: "hello from ruby #{RUBY_VERSION}"}

Here’s what the stack trace appears like in the Lambda Console.

You keep your mental context in Ruby land the entire time 😁

Edit this page

See a typo or an error? You can improve this page. This website is available on GitHub, and contributions are encouraged and welcomed. We love pull requests from you!