Pin it like a debugger for Sidekiq?

I tried pry and remote-pry but no luck. I am familiar with logging, but I want to be able to execute my code and look at the variables.

Does anyone know anything that I can use to debug Sidekiq?

+4
source share
2 answers

The best thing that I came up with is this stone, gem 'pry-remote'it works great and stops the start of all processes. And it works like pryjust inserting binding.remote_pry, and you have a breakpoint.

+1
source

Workers are designed to run trivially. Put pry in your working code and run it in the rails console.

> MyWorker.new.perform(some_args)
+10
source

Source: https://habr.com/ru/post/1614310/