Install and configure Ruby debug tool ruby-debug-base19 in Windows, rubydebug

Source: Internet
Author: User
Install and configure the Ruby debug tool ruby-debug-base19, rubydebug under Windows

Two ways for gem to use proxy:

method one: 
>> SET http_proxy = http: // ip_or_host: PORT
>> gem install the_package_name

Method 2:
>> gem list -p http: // user: passwd @ ip_or_host: 8080 -r
Install ruby-debug-base19
There are 2 methods:
method one:
Download the .gem file first, and then install the .gem file directly. This needs to be compiled, so you need to bring the with-ruby-include parameter. This is the Ruby development and compilation package.

>> curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem
>> curl -OL http://rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem
>> gem install linecache19-0.5.13.gem ruby-debug-base19-0.11.26.gem---with-ruby-include = $ rvm_path / src / ruby-1.9.3-p125 /

Method Two:
Download the ruby-debug version of the windows without compilation.

Finally use the agent to install ruby-debug-base19

Copy the code The code is as follows:

>> gem install ruby-debug-base19 -p http: // ip_or_host: 8080 -r---with-ruby-include = D: /ruby-1.9.3-p125/


gem can also view the remote installation library package to distinguish the local installation library
gem list -r
gem install -r gem_package_name

Configuration in rubymine IDE
In rubymine, if the ruby interpreter selects 1.9.3, then you must install ruby-debug-base19x when debugging, and other installations will not work, even if it is ruby-debug-base193, but installation of this will often report errors. Find the answer on the Great God website stackoverflow.com.

curl -L "http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem" -o /tmp/linecache19-0.5.13.gem
gem install linecache19-0.5.13.gem---with-ruby-include = D: \ ruby-1.9.3-p125
gem install ruby-debug-base19x -v 0.11.30.pre10
gem install ruby-debug-ide -v 0.4.17.beta14

If you still get an error, then uninstall all ruby-debug-base versions and reinstall.
In rubymine, if the ruby interpreter selects 1.9.3, then you must install ruby-debug-base19x when debugging, and other installations will not work, even if it is ruby-debug-base193, but installing this will often report errors. Find the answer on the Great God website stackoverflow.com.

curl -L "http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem" -o /tmp/linecache19-0.5.13.gem
gem install linecache19-0.5.13.gem---with-ruby-include = D: \ ruby-1.9.3-p125
gem install ruby-debug-base19x -v 0.11.30.pre10
gem install ruby-debug-ide -v 0.4.17.beta14

If you still get an error, then uninstall all ruby-debug-base versions and reinstall.

Articles you may be interested in:
Ruby connect to use sql server database code example under windows
Ruby language installation tutorial under Windows
Ruby on Rails development environment installation and configuration graphic tutorials under Windows
Download and installation of Ruby under windows and linux
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.