# Debugger problem on windows xp

**URL:** <https://www.ruby-forum.com/t/debugger-problem-on-windows-xp/67403>\
**Category:** Ruby\
**Created:** [September 4, 2006, 3:10am UTC](https://www.ruby-forum.com/t/debugger-problem-on-windows-xp/67403 "2006-09-04T03:10:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![randw](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecb155/32.png) [@randw](https://www.ruby-forum.com/u/randw)\
**Post date:** [September 4, 2006, 3:10am UTC](https://www.ruby-forum.com/t/debugger-problem-on-windows-xp/67403/1 "2006-09-04T03:10:37Z")

</div>

I am new to Ruby and have just tried using the debugger for the first  
time. Unfortunately, the result is nothing like I expected. Here is  
the first part of session:

C:\ruby\ruby4rails\>ruby -r debug c2fi.rb  
Debug.rb  
Emacs support available.

c:/ruby/lib/ruby/site\_ruby/1.8/ubygems.rb:10:require ‘rubygems’  
(rdb:1) step  
c:/ruby/lib/ruby/site\_ruby/1.8/rubygems.rb:10:require ‘rbconfig’  
(rdb:1) step  
c:/ruby/lib/ruby/1.8/i386-mswin32/rbconfig.rb:5:module Config  
(rdb:1) step  
c:/ruby/lib/ruby/1.8/i386-mswin32/rbconfig.rb:7: raise “ruby lib  
version (1.8  
.4) doesn’t match executable version (#{RUBY\_VERSION})”  
(rdb:1) step  
c:/ruby/lib/ruby/1.8/i386-mswin32/rbconfig.rb:9: TOPDIR =  
File.dirname( **FILE**  
).chomp!("/lib/ruby/1.8/i386-mswin32")  
(rdb:1) step  
…

Why doesn’t it just start executing the statements in c2fi.rb (a simple  
program to convert Celsius temperature to Fahrenheit - I got it out of  
the book Ruby for Rails by David Black - the program runs just fine)?  
Why is it showing all these “require” statements that are not in the  
program? The line

c:/ruby/lib/ruby/1.8/i386-mswin32/rbconfig.rb:7: raise “ruby lib  
version (1.8  
.4) doesn’t match executable version (#{RUBY\_VERSION})”

is particularly disturbing. Does this mean that there is something  
wrong with the installation?

I am running the following version of Ruby:

C:\ruby\ruby4rails\>ruby --version  
ruby 1.8.4 (2006-04-14) [i386-mswin32]

Any help on this will be greatly appreciated.

Rand Waltzman
