debug
debug copied to clipboard
paste is pasting extra characters
Your environment
-
ruby -v
: ruby 3.0.4p208 (2022-04-12 revision 3fa771dded) [x86_64-linux] -
rdbg -v
: rdbg 1.5.0
Describe the bug
When pasting something into debug console, extra characters are inserted
For example, pasted "break" and "^[[200~" and "^[[201~" is always pasted also in
(ruby:remote) ^[[200~break^[[201~
To Reproduce
- puma server running in docker container ** require 'debug/open_nonstop'
- rdbg --attach
- Paste something in debugger console
Expected behavior
- paste won't paste extra characters
- no_color turns off all colors
- no redundant and useless '(rdbg:remote) c # continue command" or such shown when trying to enter commands, it just makes usage irritating due to flashing '# whatever useless text'
Additional context
config I used
config set nonstop true
config set no_color true
config set use_short_path true
I think "^[[200~" and "^[[201~" are Bracketed-paste. Terminal application's setting perhaps can disable it.
Have to check if there is some setting. Strangely this is only case were I have seen such happening.
debug.gem uses Reline which is used by irb for console. irb doesn't show this issue?
Please reopen this issue if you have another idea.
Fix: https://askubuntu.com/questions/662222/why-bracketed-paste-mode-is-enabled-sporadically-in-my-terminal-screen