Debugging Ruby on Jets

I am currently unable to debug a Ruby on Jets application with Rubymine. 
Ruby on Jets has a local server using puma, similar to rails. We can run it using "bundle exec jets s"

While I was experimenting a bit, I found out that jets start a rackup session on a different process than the main one created by the rdebug-ide at the beginning. Then, I created a debugger_start.rb in the initializer folder to add the line 

Debugger.start_server nil, port_number

Given that this process is called twice for Jets (one to set up the jets environment and another for rackup) I also included the following:

is_rackup = caller.any? { |s| s.include?('rackup') }


Not pretty, but it works. I am able to attach a remote debbug connection to the right process now. The problem is that I receive no feedback from the brakpoints I am using. It was working at some point in the past, so I am not sure what is wrong now.

Does anyone have experience debbugin ruby on jets on Rubymine?




1 comment
Comment actions Permalink

I was able to successfully debug by configuring a Rack Run/Debug Configuration.

0

Please sign in to leave a comment.