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

binding.b doesn't stop code on second controller request and above #1051

Open
weizheheng opened this issue Dec 27, 2023 · 0 comments
Open

binding.b doesn't stop code on second controller request and above #1051

weizheheng opened this issue Dec 27, 2023 · 0 comments

Comments

@weizheheng
Copy link

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
CleanShot 2023-12-27 at 23 11 17@2x
  • Second request, the code doesn't stop
CleanShot 2023-12-27 at 23 12 00@2x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant