def console(number = nil)
      puts 'Entering debug console.'
      request = server.get_request_by_number(number) if number

      if RUBY_VERSION.to_f >= 2
        begin
          require 'byebug'
          byebug
        rescue LoadError => e
          puts
          puts 'Missing debugger, please install byebug:'
          puts '  gem install byebug'
          puts
        end
      else
        begin
          require 'ruby-debug'
          Debugger.start
          debugger
        rescue LoadError => e
          puts
          puts 'Missing debugger, please install ruby-debug:'
          puts '  gem install ruby-debug'
          puts
        end
      end
      puts 'Leaving debug console.'
    end
def console(number = nil)
      puts 'Entering debug console.'
      request = server.get_request_by_number(number) if number

      if RUBY_VERSION.to_f >= 2
        begin
          require 'byebug'
          byebug
        rescue LoadError => e
          puts
          puts 'Missing debugger, please install byebug:'
          puts '  gem install byebug'
          puts
        end
      else
        begin
          require 'ruby-debug'
          Debugger.start
          debugger
        rescue LoadError => e
          puts
          puts 'Missing debugger, please install ruby-debug:'
          puts '  gem install ruby-debug'
          puts
        end
      end
      puts 'Leaving debug console.'
    end
Start a console session (used for debugging)