NetBeans6.8下建立Ruby調試環境

來源:互聯網
上載者:User

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.

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.