[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

freeride debugger issue

Chuck Brotman

6/24/2005 12:59:00 AM

I've been trying out Freeride and when I try to run my program using the
debugger, it always stops on the line "require rubygems" in file ubygems.rb
Neither the file nor the include were put there by me. Is there a way to
stop this behavior?


4 Answers

Curt Hibbs

6/24/2005 2:57:00 AM

0

Chuck Brotman wrote:
> I've been trying out Freeride and when I try to run my program using the
> debugger, it always stops on the line "require rubygems" in file ubygems.rb
> Neither the file nor the include were put there by me. Is there a way to
> stop this behavior?

This is because the environment variable RUBYOPT is set to "rubygems.rb'
which causes ruby to startup automatically using rubygems. If you don't
want automatic access to any installed rubygems, then just get rid of
this environment variable.

Curt


Chuck Brotman

6/24/2005 3:37:00 PM

0

"Curt Hibbs" <curt@hibbs.com> wrote in message
news:42BB7679.2090708@hibbs.com...
> Chuck Brotman wrote:
>> I've been trying out Freeride and when I try to run my program using the
>> debugger, it always stops on the line "require rubygems" in file
>> ubygems.rb Neither the file nor the include were put there by me. Is
>> there a way to stop this behavior?
>
> This is because the environment variable RUBYOPT is set to "rubygems.rb'
> which causes ruby to startup automatically using rubygems. If you don't
> want automatic access to any installed rubygems, then just get rid of this
> environment variable.
>
> Curt
>
>
Curt,

Thanks! Can you give me a clue as to where to find this Environment
Variable and how to get rid of it?


Curt Hibbs

6/24/2005 6:00:00 PM

0

Chuck Brotman wrote:
> "Curt Hibbs" <curt@hibbs.com> wrote in message
> news:42BB7679.2090708@hibbs.com...
>
>>Chuck Brotman wrote:
>>
>>>I've been trying out Freeride and when I try to run my program using the
>>>debugger, it always stops on the line "require rubygems" in file
>>>ubygems.rb Neither the file nor the include were put there by me. Is
>>>there a way to stop this behavior?
>>
>>This is because the environment variable RUBYOPT is set to "rubygems.rb'
>>which causes ruby to startup automatically using rubygems. If you don't
>>want automatic access to any installed rubygems, then just get rid of this
>>environment variable.
>>
>>Curt
>>
>>
>
> Curt,
>
> Thanks! Can you give me a clue as to where to find this Environment
> Variable and how to get rid of it?

If you're using Windows, right click on "My Computer" and choose
"Properties". The click on the "Advanced" tab and then on the
"Environment Variables" button. Scroll down in the "System Variables"
section until you see the "RUBYOPT" entry. Select it and click on the
"Delete" button. Finally, "OK" your way out of the open dialog boxes.

If you're using any other platform, then someone else will have you
answer this for you.

Curt



Chuck Brotman

6/24/2005 7:15:00 PM

0

Curt,



"Curt Hibbs" <curt@hibbs.com> wrote in message
news:42BC4A26.2090204@hibbs.com...
> Chuck Brotman wrote:
>> "Curt Hibbs" <curt@hibbs.com> wrote in message
>> news:42BB7679.2090708@hibbs.com...
>>
>>>Chuck Brotman wrote:
>>>
>>>>I've been trying out Freeride and when I try to run my program using the
>>>>debugger, it always stops on the line "require rubygems" in file
>>>>ubygems.rb Neither the file nor the include were put there by me. Is
>>>>there a way to stop this behavior?
>>>
>>>This is because the environment variable RUBYOPT is set to "rubygems.rb'
>>>which causes ruby to startup automatically using rubygems. If you don't
>>>want automatic access to any installed rubygems, then just get rid of
>>>this environment variable.
>>>
>>>
>>>
>>>
>>
>> Curt,
>>
>> Thanks! Can you give me a clue as to where to find this Environment
>> Variable and how to get rid of it?
>
> If you're using Windows, right click on "My Computer" and choose
> "Properties". The click on the "Advanced" tab and then on the "Environment
> Variables" button. Scroll down in the "System Variables" section until you
> see the "RUBYOPT" entry. Select it and click on the "Delete" button.
> Finally, "OK" your way out of the open dialog boxes.
>
> If you're using any other platform, then someone else will have you answer
> this for you.
>
> Curt
>
>
>

Curt

Yes, I'm on Windows. and Yes the environment variable was set. And Yes, I
reset it. and Yes, it fixed the behavior. Thank You!
Chuck