debug
debug copied to clipboard
binding.b doesn't stop code on second controller request and above
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