Debugging Ruby Errors
Ruby stack trace errors surface up to the Lambda Console.
Example
Here’s an example of Ruby code throwing an intentional error:
class PostsController < ApplicationController
# ...
def ruby_example_error
INTENTIONAL_RUBY_ERROR
render json: {message: "hello from ruby #{RUBY_VERSION}"}
end
end
Here’s what the stack trace appears like in the Lambda Console.
You keep your mental context in Ruby land the entire time 😁