Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pasting multiple lines of code #190

Open
ndbroadbent opened this issue Sep 21, 2018 · 0 comments
Open

Pasting multiple lines of code #190

ndbroadbent opened this issue Sep 21, 2018 · 0 comments

Comments

@ndbroadbent
Copy link

ndbroadbent commented Sep 21, 2018

One thing that really frustrates me is not being able to paste multiple lines of code. I often have to make little blocks of code into a single line, add semicolons, use curly braces, etc.

It would be extremely useful if there was a way to paste multiple lines of code, and execute the code once you reach the final end or }.

Actually I just started irb to test it out and it seemed to work fine, which is strange. Do you know why this might be working fine in irb, and broken in my Rails app?

$ irb
2.4.2 :001 > require 'pry-byebug'
2.4.2 :002 > binding.pry

Frame number: 0/13
[1] pry(main)> begin
[1] pry(main)*   puts 'hello'
[1] pry(main)* end
hello
=> nil
[2] pry(main)>

(I'm using pry-byebug v3.6.0, byebug v10.0.2, Ruby 2.4.2p198.)

EDIT: Oh yeah, I also opened this issue a while ago: deivid-rodriguez/byebug#359

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant