How do I get the debugger to respond?

I am having difficulty getting debugging going in Rubymine 3.2.4, with a Rails 3.0.7 application running Ruby 1.9.2-p180 on Windows.  I can run the application from RubyMine and it runs OK.  Then I choose Debug (app still running) and it says it is connecting and after a few seconds the Debug panel appears.  I can set breakpoints in the source, but nothing seems to happen when the breakpointed code is executed.

I have the following gems installed:

ruby-debug-base19 (0.11.25)
ruby-debug-base19x (0.11.30.pre2, 0.11.29)
ruby-debug-ide (0.4.17.beta8)



Any suggestions would be appreciated.
Ian.
4 comments
Comment actions Permalink

Please make sure that debugged configuration continues to run. Debug button runs another instance of Rails server, which is most probably terminated because it cannot open port already taken by previous instance. In order to debug application you should run it in debug mode from the start.

0
Comment actions Permalink

Thanks for the prompt response!  It is working now.  I had tried using just the Debug button, but nothing seemed to be happening and my browser wasn't getting a response from http://127.0.0.1:3000.  I think I just hadn't waited long enough for the server to get going in the background.  Is there any visible indication that shows when it's ready?

Ian.

0
Comment actions Permalink

The only visible indication is in console output. However, if you check open in web browser checkbox it would automatically load provided url so it'll be easy to start debugging

0

Please sign in to leave a comment.