mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
This follows a similar change for local python invocation at ad5decb080/lib/plugins/aws/invokeLocal/invoke.py (L76-L82)
A handler such as the following will now pause at the breakpoint:
```ruby
require 'json'
require 'pry'
def hello(event:, context:)
binding.pry # breakpoint
{ statusCode: 200, body: JSON.generate('Go Serverless v1.0! Your function executed successfully!') }
end
```