Hello -
I am new to Ruby. I have Ruby 1.93 on Windows 7 Home Premium.
To install a debugger I gather one has to install DevKit first. I have
done this,
from the self-installer DevKit-4.5.0-20100819-1536-sfx.exe, but when I
try to install
ruby-debug it makes no difference.
My next guess is to install a different version of DevKit but first I
will have to
uninstall the present version. Can this be done?
Alternatively, are there any debugging facilities that can be installed
on Windows
without hassle?
Up to now the conversation has been as follows: (I use "indexing" as
home directory):-
[C:\DevKit]ruby dk.rb init
[INFO] found RubyInstaller v1.9.3 at C:/Ruby193
Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.
[C:\DevKit]b config.yml
[C:\DevKit]ruby dk.rb install
[INFO] RubyGems override already in place for C:/Ruby193, skipping.
[INFO] Installing C:/Ruby193/lib/ruby/site_ruby/devkit.rb
[C:\DevKit]cd -
[C:\Indexing]gem install ruby-debug
Fetching: rbx-require-relative-0.0.9.gem (100%)
Fetching: linecache-0.46.gem (100%)
ERROR: Error installing ruby-debug:
The 'linecache' native gem requires installed build tools.
Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Deve...
on 2012-12-28 10:25
on 2012-12-28 11:10
ruby-debug on Windows and 1.9.x is a problem many people have. If you want strictly ruby-debug for Ruby 1.9.x the package you are looking for is ruby-debug19, not ruby-debug. I have rewritten ruby-debug for Ruby 1.9 and called it trepanning. See http://github.com/rocky/trepanning. However it requires a patched version of Ruby to run because the run-time support for good debugging got removed between 1.8 and 1.9. ruby-debug19 tries to workaround the lack of support whereas in trepanning, I try to address this head-on by adding the support in the Ruby runtime. I have been able to get all of this working on cygwin without too much trouble, and would be amenable to trying to provide prebuild "oneclick" executables for native Windows7 (see https://github.com/oneclick/rubyinstaller/). So perhaps if someone is willing to help, that my be a possibility in the future. But currently I have not been able to build Ruby 1.9.3 with the oneclick installer even without my patches.
on 2012-12-28 12:59
Hi John, Am very much new to Ruby too. I'm learning ruby through a interpreter+debugger on www.codeacademy.com. I prefer this because they take you through the basics, literally holding your hands (I'm very new to programming as well). Hope this helps. Cheers Ram
on 2012-12-28 18:15
On 28/12/2012 10:10, Rocky Bernstein wrote: > ruby-debug on Windows and 1.9.x is a problem many people have. If you > want strictly ruby-debug for Ruby 1.9.x the package you are looking for > is ruby-debug19, not ruby-debug. > > [snip] Thanks for the info. Ruby-debug19 doesn't install either. I don't necessarily want ruby-debug but it is the debugger covered in the Pickaxe book which describes Ruby 1.9. Perhaps Windows programmers are seen as too intelligent to need debuggers. Meanwhile, is DevKit-4.5.0-20100819-1536-sfx.exe an appropriate version for the current version of Ruby? I downloaded it from a third-party website.
on 2012-12-28 19:11
I'm stuck on the new version at trying to do something very simple. When I try to click "new" context menu in windows to open a new ruby program, there is no option to open a new ruby program. Has anybody else had this problem and know how to fix it? This is my first outing into programming of any kind so please explain it to me like I'm a little kid.
on 2013-01-10 15:43
On 12/28/12, Lee V. <lists@ruby-forum.com> wrote: > I'm stuck on the new version at trying to do something very simple. > When I try to click "new" context menu in windows to open a new ruby > program, there is no option to open a new ruby program. Has anybody > else had this problem and know how to fix it? This is my first outing > into programming of any kind so please explain it to me like I'm a > little kid. are you referring to the windows explorer "right click in a folder -> new -> XXX" ?
on 2013-01-10 15:44
On 12/28/12, Rocky Bernstein <lists@ruby-forum.com> wrote: > ruby-debug on Windows and 1.9.x is a problem many people have. If you > want strictly ruby-debug for Ruby 1.9.x the package you are looking for > is ruby-debug19, not ruby-debug. > > I have rewritten ruby-debug for Ruby 1.9 and called it trepanning. See > http://github.com/rocky/trepanning. However it requires a patched > version of Ruby to run because the run-time support for good debugging > got removed between 1.8 and 1.9. ruby-debug19 tries to workaround the > lack of support whereas in trepanning, I try to address this head-on by > adding the support in the Ruby runtime. Hope it gets accepted upstream some day :)
on 2013-01-10 15:45
On 12/28/12, John Sampson <jrs.idx@ntlworld.com> wrote: > Ruby-debug19 doesn't install either. failure message? > > I don't necessarily want ruby-debug but it is the debugger covered in > the Pickaxe book > which describes Ruby 1.9. > > Perhaps Windows programmers are seen as too intelligent to need debuggers. > > Meanwhile, is DevKit-4.5.0-20100819-1536-sfx.exe an appropriate version for > the current version of Ruby? I downloaded it from a third-party website. That should work, you can get a slightly newer version at rubyinstaller.org
on 2013-01-10 17:45
On 10/01/2013 14:44, Roger Pack wrote: >> >> Meanwhile, is DevKit-4.5.0-20100819-1536-sfx.exe an appropriate version for >> the current version of Ruby? I downloaded it from a third-party website. > That should work, you can get a slightly newer version at rubyinstaller.org > > > This was some time ago, so I have forgotten what the failure message was. Thanks for the info about Devkit. I didn't pursue the matter of the debugger - for me the complexities of getting a Ruby debugger working on Windows 7 would be more trouble than they were worth. Not having invested heavily in Ruby, I aim to move to a programming environment that has a working debugger. This of course reflects my particular aims and circumstances.
on 2013-01-10 18:43
On 1/10/13, John Sampson <jrs.idx@ntlworld.com> wrote: >>> Thanks for the info. >>> debuggers. > > Thanks for the info about Devkit. > > I didn't pursue the matter of the debugger - for me the complexities of > getting a Ruby debugger > working on Windows 7 would be more trouble than they were worth. > > Not having invested heavily in Ruby, I aim to move to a programming > environment that has a working debugger. This of course reflects my > particular aims and > circumstances. Yes, it "should" just work, sorry for the run around in this case.
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.