History not available
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the session in a Rails console with debug 1.9.1: run a command, check history, restart, and press the up arrow. Compare this behavior with pry-byebug and trace the debug console's history handling; done means commands persist across console restarts and the history command reports them.
Written by the indexing model from the issue text.
Description
ruby -v: ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin21]gem list debug: debug (1.9.1)gem list rails: rails (7.1.2)gem list irb: irb (default: 1.11.0)
Describe the bug
Command history is forgotten after restarting rails console
To Reproduce
- open rails console
- issue anything (eg:
1+1) - issue
history, you must see the two commands - exit rails console
- open rails console again
- press up arrow (it should bring back last executed command), but none is returned
- issue
history, history is empty
ps: it works as expected when I have pry-byebug (3.10.1) instead of debug (1.9.1) on the application Gemfile
Expected behavior
When pressing up arrow, I should see the last executed command, as it happens with pry-byebug.
- Dominant language
- Ruby
- Stars
- 1.3k
- Forks
- 146
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ruby/debug
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Support exceptionOptions in setExceptionBreakpoints to catch arbitrary exception classes via DAP Open
Difficulty 4/5 3-5 days Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Similar issues
-
バグ
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
voxpupuli/puppet-epel#186 · 1 comment ·
-
external_created_at is no longer used for the message timestamp since the new message UI (v4.4.0) OpenBug Frontend
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
TheOdinProject/curriculum#31402 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100