NetBeans6.8下建立Ruby调试环境

You need to install a bunch of gems locally since the remote installation didn’t work or at least not stably.

By assumption that InstantRails2.0 is ready on your XP platform, then you could go on the following steps:

1 download NetBeans6.8, which is a wonderful IDE for Ruby world, download it freely here:

http://netbeans.org/downloads/index.html

remember download the ruby one, which is around 92M.

2 download all related gems for debugging ruby. Here is the list(please Google them by names):

2010-03-25 09:17 15,360 columnize-0.3.0.gem

2010-03-25 09:10 31,744 linecache-0.43-mswin32.gem

2010-03-24 17:27 117,760 ruby-debug-0.10.3.gem

2010-03-25 09:11 113,152 ruby-debug-base-0.10.3-mswin32.gem

2010-03-24 16:20 36,864 ruby-debug-base-0.9.2-mswin32.gem

2009-12-09 16:16 31,744 ruby-debug-ide-0.4.6.gem

The order of installation is columnize->linecache->ruby-debug-base->ruby-debug->ruby-debug-ide

3 launch NetBeans, new project with existing ruby project codes, for me, I import redmine project.

Note that the build-in ruby platform is JRuby-1.4.0, you get to change it to Ruby 1.8.6-p111 which should be installed under your InstantRails2.0/ruby.

Anyway, by clicking tools->ruby platform, if you see quick debug engine of ruby is (ruby-debug-ide)

Then ruby debug enviroment is ready for you, you could set breakpoints/step in/step out/run to cursor just as what you could do with java/c++ codes.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值