Debugging Ruby Errors

In How Jets Works, we cover that AWS Lambda does not currently support Ruby natively. Jets adds Ruby Support by using a node shim. You might think that this means you will need to debug node errors. But this is not the case at all. Jets surfaces the Ruby stack trace error up through the node shim all the way 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 😁

Pro tip: Use the <- and -> arrow keys to move back and forward.

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!