Thin with SSL support and ruby-debug

后端 未结 4 463
梦如初夏
梦如初夏 2020-12-17 00:04

Does anyone know of a way to run the ruby debugger and SSL at the same time with Thin?

I\'ve been using Thin successfully with Rails 3.0.10.

I start it using

4条回答
  •  不知归路
    2020-12-17 00:46

    You could try just requiring the debugger yourself in your development environment.

    In your Gemfile:

    if RUBY_VERSION =~ /^1.9/
      gem "ruby-debug19", :group => :development
    else
      gem "ruby-debug", :group => :development
    end
    

    And within the config block of your config/environments/development.rb:

    require 'ruby-debug'
    Debugger.start
    

    This permits you to place the debugger statement anywhere in your code.

提交回复
热议问题