NetBeans on Windows

December 2nd, 2008

Okay, so I know that RoR development on Windows is not ideal.  But I’ve been faring okay so far using RadRails for Aptana.  But Aptana is a memory hog that (in conjunction with firefox and other heavy apps) can slow my laptop to crawl.  So in looking for something leaner, I fell in love with NetBeans.

NetBeans is light, subversion integration rocks (color coding allows you to easily track the status of your files) and I love love love code completion.  But I can’t use it.  I can’t use it because I can’t get the debugger to work!  

There were bugs reported in version 6.1 and now it appears that the same problem exists with 6.5.  Basically, the web server refuses to start (mongrel or webrick).  You get the error “Could not connect to the web server… cannot show /http:localhost:3000/

Past workarounds from the FAQ do not help, like adding ARGV[0]=”webrick” to the scripts/server file or simply manually opening the webpage.  And there’s no help out there on the net.  Probably because most folks have wizened up and made the switch to Apple or Linux.  *sigh*

Has anyone else out there gotten the debugger to work using Windows and NetBeans version 6.5?

 

Entry Filed under: Ruby on Rails

5 Comments Add your own

  • 1. Chris  |  December 2nd, 2008 at 9:49 pm

    I have used the debugger on Windows with Rails apps successfully for a couple of months (starting with the RC versions). You might want to start up a conversation in the users alias (see http://wiki.netbeans.org/RubyCommunityInformation). The engineers are very helpful and can ask questions to help narrow in on your problem.

    P.S. You don’t have to set ARGV[0] in 6.5.

  • 2. cadego blog» Blogar&hellip  |  December 11th, 2008 at 5:38 am

    [...] jetzt über einen NetBeans-Beitrag gestolpert. Die Vorschaubilder schauen jedenfalls vielversprechend [...]

  • 3. lianaleahy  |  December 11th, 2008 at 6:58 pm

    Okay, after much pain I did get the debugger to work. Sort of.

    I confirmed that I’m running Jre1.6.0_011, rails 2.2.2, ruby 1.8.6 and that these versions are being used by NetBeans. I edited my netbeans.conf file to point to the new java install and selected Ruby 1.8.6-p111 from the project properties dropdown.

    C:\ruby\bin\ruby.exe -v reveals that I am in fact running ruby 1.8.6.
    C:\ruby\bin\ruby.exe -e ‘p RUBY_VERSION; p RUBY_PATCHLEVEL if defined? RUBY_PATCHLEVEL’ reveals Ruby 1.8.6 Patch level 111
    Checking the about box confirms that I am running Jre1.6.0_011

    Running the application works fine, even debugging the application works fine (as long as I don’t add any breakpoints). The moment I add breakpoints, I get the error message:

    “Problem occured during debugger start: Unable to read added breakpoint number in specified timeout[15s]”

    It always occurs regardless of where I set the breakpoints. It does not occur when I do not set a breakpoint.

    But the workaround is that I do not get this error when I set only one breakpoint. So in fact, I do believe this to be some sort of timeout error. Depending upon your cpu/machine you may get the breakpoint error upon setting one or more breakpoints.

    I *could* investigate further, but honestly I need to start getting some work done!

  • 4. lianaleahy  |  June 19th, 2009 at 10:58 am

    I finally got this to work by limiting the number of breakpoints to one. It’s a little annoying, but at least I’ve got it working.

  • 5. Geek Mama » Blog Ar&hellip  |  July 14th, 2009 at 4:59 pm

    [...] 6.5 gave me grief when trying to use the debugger.  You can read about it here.  Now, Netbeans 6.7 is giving me trouble checking out my project from subversion.  It [...]

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


RSS Berkman Gender & Tech

RSS Tweets

Tags

Meta