"You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'"

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

"You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'"

cheyw
Hi,All
    I get a problem when debug OBS server.
    -----------------------------------------------------------------------------------------------
    EVR(
     System                    : Opensuse 12.3 (x86-64)
     Version of OBS        : 2.4
     Repo of  OBS Server : http://download.opensuse.org/repositories/OBS:/Server:/2.4/openSUSE_12.3/
     Version of ruby         : ruby-1.9.3-15.2.1.x86_64
     Version of debug(gem):debugger (1.6.0)
                                      debugger-linecache (1.2.0)
                                      debugger-ruby_core_source (1.2.2)
                                       ruby-debug-base19 (0.11.26)
                                       ruby-debug-ide (0.4.16)
                                       ruby-debug19 (0.11.6)
     Version of rails         : rubygem-rails-3_2-3.2.12-44.2.x86_64
    Command : ./script/rails server  -e production -p 5555 -u
    Location    : /srv/www/obs/webui/
    Fail log     : "=> Booting WEBrick
                       => Rails 3.2.12 application starting in production on http://0.0.0.0:5555
                       => Call with -d to detach
                       => Ctrl-C to shutdown server
                       You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'
                       Exiting"
    --------------------------------------------------------------------------------------------
    How can I do ? Thanks :)

BRs
cheyw
Reply | Threaded
Open this post in threaded view
|

Re: "You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'"

cheyw
1)and It's true when require "ruby-debug" in irb .liks that :
---------------------------------------------------------------------
obs-server:/srv/www/obs/webui # irb
irb(main):001:0> require 'ruby-debug'
=> true
irb(main):002:0>
---------------------------------------------------------------------

2)I can debug  script of ruby. liks that:
---------------------------------------------------------------------
obs-server:/srv/www/obs/webui # cat a.rb
puts "aa"
puts "aa"
puts "aa"
puts "aa"
obs-server:/srv/www/obs/webui # ruby -rdebug a.rb 
Debug.rb
Emacs support available.

a.rb:1:puts "aa"
(rdb:1) n
aa
a.rb:2:puts "aa"
(rdb:1)
n
aa
a.rb:3:puts "aa"
(rdb:1)
n
aa
a.rb:4:puts "aa"
(rdb:1)
n
aa
obs-server:/srv/www/obs/webui # 
---------------------------------------------------------------------
Reply | Threaded
Open this post in threaded view
|

Re: "You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'"

Henne Vogelsang-2
In reply to this post by cheyw
Hey,

On 06.06.2013 11:15, cheyw wrote:

> You need to install ruby-debug to run the server in
> debugging mode. With gems, use 'gem install ruby-debug' Exiting"
>    
> How can I do ? Thanks :)

You need to add the gem 'debugger' to your bundle. Add it to the
:development group in your Gemfile.

Henne

--
Henne Vogelsang
http://www.opensuse.org
Everybody has a plan, until they get hit.
        - Mike Tyson
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: "You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'"

cheyw
It's not OK. I have already add gem 'debugger' in Gemfile .
Reply | Threaded
Open this post in threaded view
|

Re: "You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'"

Henne Vogelsang-2
Hey,

On 06.06.2013 12:25, cheyw wrote:

> It's not OK. I have already add gem 'debugger' in Gemfile .

Did you install your bundle? Just run

bundle install

Henne

--
Henne Vogelsang
http://www.opensuse.org
Everybody has a plan, until they get hit.
        - Mike Tyson
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: "You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'"

Sascha Peilicke-5
In reply to this post by Henne Vogelsang-2
On 06/06/2013 12:12 PM, Henne Vogelsang wrote:

> Hey,
>
> On 06.06.2013 11:15, cheyw wrote:
>
>> You need to install ruby-debug to run the server in
>> debugging mode. With gems, use 'gem install ruby-debug' Exiting"
>>
>> How can I do ? Thanks :)
>
> You need to add the gem 'debugger' to your bundle. Add it to the
> :development group in your Gemfile.

Why not rather add the "ruby-debug" gem? Also, I'm unsure if that works
with Ruby-1.9. You should rather use pry


--
Sascha Peilicke
SUSE Linux GmbH, Maxfeldstr. 5, D-90409 Nuernberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer HRB 16746 (AG Nürnberg)
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: "You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'"

Henne Vogelsang-2
Hey,

On 06.06.2013 16:24, Sascha Peilicke wrote:

> On 06/06/2013 12:12 PM, Henne Vogelsang wrote:
>> On 06.06.2013 11:15, cheyw wrote:
>>
>>> You need to install ruby-debug to run the server in
>>> debugging mode. With gems, use 'gem install ruby-debug' Exiting"
>>>
>>> How can I do ? Thanks :)
>>
>> You need to add the gem 'debugger' to your bundle. Add it to the
>> :development group in your Gemfile.
>
> Why not rather add the "ruby-debug" gem? Also, I'm unsure if that works
> with Ruby-1.9.

Because I'm sure it doesn't work with 1.9.x  :)

Henne

--
Henne Vogelsang
http://www.opensuse.org
Everybody has a plan, until they get hit.
        - Mike Tyson
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: "You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'"

cheyw
Thanks all first  :)
 -----------------------------------------------------------------------------------------------------------
obs-server:/srv/www/obs/webui # cat Gemfile
# Edit this Gemfile to bundle your application's dependencies.
# This preamble is the current preamble for Rails 3 apps; edit as needed.
source 'http://rubygems.org'

gem 'debugger'
gem 'rails', '~>3.2.9'

# Gems used only for assets and not required in production environments by default.
group :assets do
  gem 'cssmin', '>= 1.0.2'
  gem 'uglifier', '>= 1.2.2'
  gem 'sass-rails'
  gem 'compass-rails'
  gem 'jquery-datatables-rails'
  gem 'codemirror-rails', '>= 3.0'
  gem 'rails_tokeninput'
end

group :development do
  gem 'pry', '>= 0.9.8.4'
  #gem 'pry-doc', '>= 0.4.1'
  gem 'sqlite3'
 
  # See http://railscasts.com/episodes/368-miniprofiler
  gem 'rack-mini-profiler'
  #gem 'stacktrace'
  ## Add by cheyw  20130607
  gem 'debugger'
  ##end add 20130607
end

group :test do
  gem 'capybara_minitest_spec'
  gem 'ci_reporter'
  gem 'simplecov-rcov', :require => false, :group => :test
  # See test/test_helper.rb for details:
  gem 'capybara', '>=2.0'
  gem 'capybara-webkit'
  # for save_and_open_page to debug
  gem 'launchy'
  gem 'headless'
  # random hex strings are just so boring
  gem 'faker'
  gem 'mocha', '> 0.13.0', require: false
end

gem 'mysql2'
gem 'nokogiri', '~>1.5.0'
gem 'delayed_job', '>3.0'
gem 'delayed_job_active_record'
gem 'hoptoad_notifier', "~> 2.3"
gem 'yajl-ruby'
gem 'rdoc'
gem 'xmlhash', '>=1.3.2'
gem 'fast_xs'
gem 'memcache-client', :require => false
gem 'jquery-rails'
gem 'mobileesp_converted'
gem 'rake', '~>0.9.2'
obs-server:/srv/www/obs/webui # bundle install
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.

If this is a development machine, remove the Gemfile freeze
by running `bundle install --no-deployment`.

You have added to the Gemfile:
* debugger
* debugger
obs-server:/srv/www/obs/webui # ./script/rails server  -e production -p 5555 -u
=> Booting WEBrick
=> Rails 3.2.12 application starting in production on http://0.0.0.0:5555
=> Call with -d to detach
=> Ctrl-C to shutdown server
You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'
Exiting
obs-server:/srv/www/obs/webui # gem install ruby-debug
Building native extensions.  This could take a while...
ERROR:  Error installing ruby-debug:
        ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9 extconf.rb
Can't handle 1.9.x yet
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/bin/ruby1.9


Gem files will remain installed in /usr/lib64/ruby/gems/1.9.1/gems/linecache-0.46 for inspection.
Results logged to /usr/lib64/ruby/gems/1.9.1/gems/linecache-0.46/ext/gem_make.out
obs-server:/srv/www/obs/webui # gem list --local |grep debug
debugger (1.6.0)
debugger-linecache (1.2.0)
debugger-ruby_core_source (1.2.2)
ruby-debug-base19 (0.11.26, 0.11.25)
ruby-debug-ide (0.4.16)
ruby-debug19 (0.11.6)
obs-server:/srv/www/obs/webui #
 -----------------------------------------------------------------------------------------------------------
:)
Reply | Threaded
Open this post in threaded view
|

Re: "You need to install ruby-debug to run the server in debugging mode. With gems, use 'gem install ruby-debug'"

cheyw
This post was updated on .
 Any one can help me?