You need to install ruby-debug to run the server in debugging mode?
dxypher opened this issue ยท 12 comments
I'm running an app on Ruby 1.9.3p374 and Rails 3.2.13. I'm running gem install debugger in the terminal, which is successful. Then when I run rails server --debug or rails server --debugger I get the following message:
You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'
When I add gem 'ruby-debug' to my Gemfile and run bundle it doesn't work with Ruby 1.9.x.
When I add gem 'ruby-debug19' to my Gemfile, run bundle and then try starting the server in debug mode, I get the same message as before:
You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'
Any ideas on what I'm doing wrong?
Thanks for reporting your issue! This is one of my 13 active issues. Use that link to check how soon your issue will be answered. Don't forget to check your issue against this project's CONTRIBUTING.md. Cheers.
@dxypher, ruby-debug has been completely removed from rails as far as I know. Are you sure you're using rails 3.2.13? Try the command
bundle exec rails server --debugger
@deivid-rodriguez I tried the command you suggested but get the same message as before:
You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'
When I run rails -v in my terminal I get:
Rails 3.2.13
Weird... with
bundle exec rails -v
you still get 3.2.13?
Yep, still get Rails 3.2.13
Could you paste your Gemfile?
source 'http://rubygems.org'
gem 'rails', '~> 3.2.13'
gem 'sqlite3'
gem 'jquery-rails'
group :assets do
gem 'sass-rails'
gem 'coffee-rails'
gem 'uglifier'
end
group :development, :test do
gem 'rspec-rails'
gem 'capybara'
gem 'faker'
gem 'fabrication', "~> 2.2.2"
gem 'guard'
gem 'guard-rspec'
#gem 'rb-fsevent'
gem 'database_cleaner'
gem 'launchy'
end
group :development do
gem 'ruby-debug19'
end
gem 'newrelic_rpm'
gem 'rack-perftools_profiler', require: 'rack/perftools_profiler'
gem "resque", "~>1.24.0"
Change gem 'ruby-debug19'
with gem 'debugger'
. Save the file, run bundle install
and then try bundle exec rails server --debugger
again
@deivid-rodriguez thanks this worked. This was silly of me, I had both the ruby-debug19 gem and was trying to also gem install debugger which seems to have been the problem.
Your are welcome! :)
@deivid-rodriguez ๐
Nice, changing gem 'ruby-debug19' with gem 'debugger' works for me.