debugging with bundler

If a rails app uses bundler, presumably all debugging sessions started by rubymine, whether rails, rake, rspec, cucumber, should be in the bundle context.  However checking "run scripts in the context of the bundle" does not seem to alter the command issued by the debugger:


/home/me/.rvm/rubies/ruby-1.9.3-p0/bin/ruby -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /home/me/.rvm/gems/ruby-1.9.3-p0@energize/gems/ruby-debug-ide-0.4.17.beta8/bin/rdebug-ide --port 50749 -- /home/me/Desktop/src/energize/script/rails server -b 0.0.0.0 -p 3001 -e development


Should it?  Otherwise, how does bundle context work?

1 comment
Comment actions Permalink

Hi,

bundle exec simply sets couple of environment variables and specifies some additional ruby options via RUBYOPT variable (such as -r bundler/setup). RubyMine emulates this behaviour by setting up all the same variables, so it works exactly like bundle exec

0

Please sign in to leave a comment.