# Setting RUBYLIB while debugging

**URL:** <https://www.ruby-forum.com/t/setting-rubylib-while-debugging/176553>\
**Category:** Ruby\
**Created:** [October 2, 2009, 1:43am UTC](https://www.ruby-forum.com/t/setting-rubylib-while-debugging/176553 "2009-10-02T01:43:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidstokar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/4da419/32.png) [@davidstokar](https://www.ruby-forum.com/u/davidstokar)\
**Post date:** [October 2, 2009, 1:43am UTC](https://www.ruby-forum.com/t/setting-rubylib-while-debugging/176553/1 "2009-10-02T01:43:45Z")

</div>

Currently I have a ruby script that is normally run via a windows batch  
file that has

set RUBYLIB=…  
ruby …\rubyfile.rb

When I run the ruby script with rdebug I run into a problem that  
required ruby files cannot be accessed from the RUBYLIB folder i.e I get  
error

C:/Work/ruby/bin/rdebug:19 Uncaught exception: no such file to load –  
ScriptReader

How do I get rdebug to know about the RUBYLIB folder where the  
ScriptReader script lives?

David
