binding.b doesn't stop code on second controller request and above
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the issue in a Rails controller's #create action with binding.break, using the Ruby 3.3.0, Rails 7.1.2, and debug 1.9.1 versions reported. Trace the debugger's request lifecycle and verify that the breakpoint stops execution on the first and every subsequent request without restarting the server.
Written by the indexing model from the issue text.
Description
Your environment
Ruby 3.3.0
Rails 7.1.2
debug 1.9.1
Hi, I am not sure if this is a bug or I am missing anything. I have try to search around but to no avail.
Issue
I have a Rails app with a controller, I try to put binding.break in the #create action. The code stops for the very first request. However, for second request onward, the code just doesn't stop and I have to restart the server for it to stop again.
def create
binding.break
# some actions
end
- First request, the code stop at the break point
- Second request, the code doesn't stop
- 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