This Question is Not Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
4 Replies Last post: Feb 23, 2011 1:09 AM by Bob Gustafson  
Bob Gustafson Newbie 78 posts since
Jan 4, 2011
Currently Being Moderated

Feb 21, 2011 1:46 AM

Clicking red square while on a breakpoint does not stop rails server.

1) Set a breakpoint in your code.

2) Start the rails server in debug mode

3) Use your browser to hit the code with the breakpoint

4) Your code executes and stops at the breakpoint

 

5) You then click the red square to the left of the 'Frames' pane - presumably this shuts down the rails server.

6) Notice that your browser still says 'Waiting for localhost' - an indication that the rails server is still active.

 

7) Then change your code (perhaps not necessary)

8) Restart rails server (either in Run or Debug mode)

 

9) You will see that the restart fails because the previous rails server is still running and still has the port bound.

 

At this point, go into a terminal window, look for rails server process (I use 'ps ax | grep rvm') and then do a 'kill -9 nnn' on that process.

 

A minor pain.

 

Perhaps there is a reason for leaving the rails server running? Before the red square is clicked, the 'Variables' pane shows the contents of the code at the breakpoint. Hitting the red square causes the execution to advance to the next breakpoint, but does not stop the server. Advancing another step will successfully kill the rails server with an exit code 1.

 

I suppose it is OK, but it does violate the Rails philosophy of 'minimum surprise'. Perhaps document it.

Oleg Shpynov JetBrains 1,172 posts since
Nov 6, 2007
Currently Being Moderated
Feb 21, 2011 12:12 PM in response to: Bob Gustafson
Re: Clicking red square while on a breakpoint does not stop rails server.

Hello Bob,

 

It seems that you've faced with already known problem described here: http://youtrack.jetbrains.net/issue/RUBY-2763

Feel free to comment, add some details about your environment, vote for it and get notified once it is fixed.

 

Regards,

Oleg

More Like This

  • Retrieving data ...