Netbeans 6.0, Leopard and “fast debug”

For the new year, I upgraded to a new machine which includes MacOS Leopard. The system looks o.k., a few nice features and not much changed really. However, there are also some annoyances:

Leopard includes a Rails distribution, but to move up to 2.0 you should do

gem update --system
gem update

to get the newest version of everything. Gem works out of the box, but uses a slightly unusual directory layout. Which means that Netbeans 6.0 will not enable the “Fast Debugger” (which is ruby-debug) – even if you installed ruby-debug-(ide|base|}-* and all the rest. The solution is a bit hidden on the NetBeans pages:

Add the following to /Applications/NetBeans/NetBeans

export GEM_PATH=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8:/Library/Ruby/Gems/1.8
export GEM_HOME=/Library/Ruby/Gems/1.8

This will set the environment variables that NetBeans needs to find the Gems – after the next scan it will re-scan the gem directories, and you can start using the debugger…


6 thoughts on “Netbeans 6.0, Leopard and “fast debug”

  1. Well yes, I got that.

    But actually editing that file. When I open it and save it using Textedit, netbeans won’t start. Should I edit it with some other editor? And does it matter where in that document I put the extra instructions.

    Thanx a lot.



  2. I have no idea, maybe a problem with Textedit (the file is a symlink, and it’s officially write-protected); maybe you should edit the “original” file (in Resources/NetBeans/bin/netbeans) instead of the link. That said, I was using TextMate and it did fine. The instructions have to go above the last block of instructions – the one starting with case “`uname`” in. This is the part starting NetBeans, so it doesn’t make sense at the end.


Comments are closed.

Blog at

Up ↑

%d bloggers like this: