« Return to Thread: NB6.7RC2 and Rails debugging

NB6.7RC2 and Rails debugging

by bkocik :: Rate this Message:

Reply to Author | View in Thread


I've been forced to deal with developing Rails apps on Windows for a while now, and since I have to run them in Cygwin I've been unable to debug them with NetBeans (which runs outside of Cygwin). I'm trying to use the new remote debugging stuff in NB6.7RC2 to remedy this, and I'm having some trouble getting started.



In Cygwin, I do this:



[15:02][wkocik]>$ rdebug-ide -p 7000 -- script/server webrick

Fast Debugger (ruby-debug-ide 0.4.6) listens on localhost:7000

=> Booting WEBrick

=> Rails 2.3.2 application starting on http://0.0.0.0:3000

=> Call with -d to detach

=> Ctrl-C to shutdown server

[2009-06-14 15:05:11] INFO  WEBrick 1.3.1

[2009-06-14 15:05:11] INFO  ruby 1.8.7 (2008-08-11) [i386-cygwin]

[2009-06-14 15:05:11] INFO  WEBrick::HTTPServer#start: pid=18428 port=3000



I attach the NetBeans remote debugger to localhost on port 7000, specifying ruby-debug-ide as the type. Then I set a breakpoint in my main controller's index method (within NB), and hit localhost:3000 with my web browser. The request completes - the breakpoint is ignored.



Am I doing something wrong here? I'm not sure how to troubleshoot this. No breakpoints I set are being obeyed, the app just flies right by them.



I'm certain the server and NetBeans are using the same codebase, because I start the server inside the same directory NB is looking at for the project. Also, when I hit the "End debugging session" button in NB, the process I started on the command line exits, so I'm sure NB is talking to the debugger.



Any ideas?






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

 « Return to Thread: NB6.7RC2 and Rails debugging