ruby / debug

Debugging functionality for Ruby
BSD 2-Clause "Simplified" License
1.14k stars 127 forks source link

Having to specify bundle exec twice #1102

Open petertimwalker opened 6 months ago

petertimwalker commented 6 months ago

I'm trying to run

rdbg -c -- bundle exec rspec <Path to rspec file>

but I keep getting this error bundler: failed to load command: rspec Prepending bundle exec to your command may solve this. (Gem::LoadError)

Screenshot 2024-05-15 at 3 56 53 PM

The weird thing is that when I enter the following command it works

rdbg -c -- bundle exec bundle exec rspec <Path to rspec file>

Any insight is appreciated!

adam12 commented 6 months ago

Does bundle exec rspec ... on it's own work, outside of rdbg?

Is debug part of your Gemfile?

petertimwalker commented 6 months ago

bundle exec rspec works outside of rdbg I installed debug as a system gem so its not in the projects gemfile