You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
What about adding an option to disable command repeat (on Enter key)? #764
Your proposal
It's a minor thing but it would be nice to have an option to disable command repeat when the Enter key is pressed in debug console.
Additional context
For users coming from pry it could be confusing to have the repeat feature on Enter.
Also, IMO, it's not comfortable repeating some commands that have side-effects. Ex. SomeModel.create! name: 'A test'
#793 limited the repeatable commands, like step, next, ... and Ruby expression is no longer repeated with empty line.
If you feel inconvenience with it, please reopen or renew an issue.
Activity
blocknotes commentedon Sep 24, 2022
I could try a PR if you like.
Perhaps it could be something like updating this point:
https://github.com/ruby/debug/blob/master/lib/debug/session.rb#L407
to:
ko1 commentedon Oct 4, 2022
step/next/... and so onSomeModel.create! name: 'A test'is not confortable.Your request is adding new option to stop the repeating the command, but another option is don't repeat Ruby script.
I'm okay for that.
introduce SessionCommand
introduce SessionCommand
ko1 commentedon Nov 4, 2022
#793 limited the repeatable commands, like
step,next, ... and Ruby expression is no longer repeated with empty line.If you feel inconvenience with it, please reopen or renew an issue.