Remote debug - Ruby Daemon - Will not break into code

When trying to remote debug a ruby daemon… it appears that the code will stop at the:

begin;
Debugger.current_context.stop_next = 1;
rescue Exception;
end;

and it also shows in the “Listen Status” that the remote server has connected with the Komodo client. The problem is that in the Komodo IDE where you would normally step through the code…focus is not set to the next line such that you can step through the code.

I’m using the latest version 8.x of Komodo on a mac. I’m trying to debug code on a Ubuntu box that is communicating back to my mac on port 9000.

Any ideas on how to make this work???

Could you explain your full debugging workflow? Did you set any breakpoints?

Could you explain your full debugging workflow?

  1. My dev environment is on a mac.

  2. I have my Komodo IDE open and I’m listening on port 9000

  3. I go to a terminal session and start my daemon.

  4. I go to rabbitmq in firefox and post a message.

  5. my code catches the message and executes my worker.

  6. in my worker method i have set breakpoints.

  7. it appears in the terminal session that I get to the komodo break point as specified by:

    ENV[‘RUBYDB_OPTS’] = ‘remoteport=127.0.0.1:9000’
    $:.push(’/Users/kingm4/Komodo-RubyRemoteDebugging-8.5.3-83298-macosx/’)
    require ‘rdbgp’

  8. it appears to stop and break too… BUT… focus is not set to my Komodo IDE in my code…such that i can step through the code.

That’s it :slight_smile:

Did you set any breakpoints?