This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 179102 - Debugger could not connect to web server (RoR)
Summary: Debugger could not connect to web server (RoR)
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P4 normal (vote)
Assignee: issues@ruby
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-29 12:01 UTC by jensengo
Modified: 2011-01-28 20:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE Log: I just opened NB and clicked the Debug Main Project button. (62.01 KB, text/plain)
2009-12-29 12:03 UTC, jensengo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jensengo 2009-12-29 12:01:23 UTC
I was able to debug in NetBeans 6.7 before, but since upgrading to 6.8, I've had some trouble. I'm not sure if it's NetBeans or some other problem, but I figured I'd submit this report and see what happens.

I'm running:
  Windows XP SP3
  Ruby 1.8.6 (2008-08-11 patchlevel 287) [i386 -mswin32]
  Rails 2.3.5
  Mongrel 1.1.5
  NetBeans 6.8 (Build 200912041610)

I clicked the Debug Main Project button in NB, which prompted me to install Fast Debugger, which I accepted. However, I got an error saying "failed to build gem native extension". So I ran "gem install ruby-debug-ide" from my Visual Studio 2008 Command Prompt instead, which gave me the same result.

After some googling, I found a post (http://geeksharp.com/2009/12/18/installing-ruby-debug-ide-on-windows/) that suggested I comment out the first 3 lines of my <ruby install directory>\lib\ruby\1.8\i386-mswin32\config.h file, which I did. Then when I ran "gem install ruby-debug-ide" on the command line again, the gem installed successfully (installed gem version 0.4.9).

Then I went back into NetBeans and clicked the Debug Main Project button again. I see in the status bar at the bottom that Mongrel starts successfully, but the "Server Startup" task eventually times out and says, "Could not connect to the web server".

Other things I've tried:
- a clean userdir (same problem occurs)
- clicking Run Main Project (works with both Mongrel and WEBrick)
- running Mongrel from the command prompt and then clicking Attach Debugger in NetBeans, giving port 3000, which Mongrel is running on (Mongrel works and serves pages, but debugger does not attach)
- installing NetBeans 6.7 side-by-side and trying to debug with it instead (also fails, but within only a few seconds instead of a long timeout)

Attached is the IDE log after I open NetBeans 6.8 and click the Debug Main Project button once.
Comment 1 jensengo 2009-12-29 12:03:17 UTC
Created attachment 92984 [details]
IDE Log: I just opened NB and clicked the Debug Main Project button.
Comment 2 jensengo 2009-12-30 08:54:23 UTC
Resolved:
After a fresh install of Ruby and NetBeans, I realized that I needed the Ruby Development Kit installed in order to install the ruby-debug-ide gem required for the fast debugger. With that installed, everything appears to be working perfectly.

It would be nice if NetBeans would inform the user when they need to install the Ruby Dev Kit for this gem if they are using Windows, as this is not well documented.
Comment 3 Vojtech Sigler 2010-01-04 02:34:22 UTC
This should probably be closed, but reassigning to ruby just in case there's still something to be done here. :)
Comment 4 Erno Mononen 2010-04-14 11:30:42 UTC
Thanks for the report. I agree it would be good to inform the user in this case. This doesn't seem to happen too often though (I think this is the only report on this) and  is fairly easy to resolve, so I'm adjusting the priority accordingly.