You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
alexbcoles edited this page Jan 6, 2011
·
1 revision
To make able to run Netbeans with Merb application debugging i've used:
JRuby 1.1.5 (from git trunk from 4'th of December 2oo8, but seems that official 1.1.5 will work here too)
Netbeans 6.5
After we have installed those gems, it's time for little hack in out Merb application:
in Application ROOT do the following:
mkdir script
touch server
and put there this content:
#!/usr/bin/env ruby
require 'rubygems'
version = ">= 0"
if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then
version = $1
ARGV.shift
end
gem 'merb-core', version
load 'merb'
Note: that it's working properly with Mongrel server only. It seems there's a bug in Glassfish delivered with Netbeans 6.5 and this application server wont work with debugger. (in my case)
Note: It does not work with newer Merb version which is executed in different way than before. Workaround needed!