debug icon indicating copy to clipboard operation
debug copied to clipboard

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

Open weizheheng opened this issue 1 year ago • 0 comments

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

weizheheng avatar Dec 27 '23 15:12 weizheheng