ruby / debug

Debugging functionality for Ruby
BSD 2-Clause "Simplified" License
1.14k stars 127 forks source link

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

Open weizheheng opened 11 months ago

weizheheng commented 11 months ago

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