Skip to content
This repository was archived by the owner on Nov 15, 2021. It is now read-only.
This repository was archived by the owner on Nov 15, 2021. It is now read-only.

debugger terminates a Rails console when you type n #133

Description

@dblock

Via nixme/pry-debugger#55.

source 'https://rubygems.org'

ruby '2.0.0'

gem 'rails'
gem 'sqlite3'
gem 'debugger'
$ rails c
Loading development environment (Rails 4.1.4)
2.0.0-p353 :001 > n
/tmp/n-wat$ 

This deserved an animated GIF.

rails-c

It's either confusing or a bug?

The n method is defined via ExtendCommandBundle.def_extend_command "n", :Next in https://github.com/cldwalker/debugger/blob/master/lib/ruby-debug/commands/irb.rb#L22 and is implemented as

    class Next # :nodoc:
      def self.execute(conf)
        throw :IRB_EXIT, :next
      end
    end

I really don't understand the purpose of this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions