Ruby 3.1.1 Rails 7.0.3
After breakpoint is enabled debugger fails. With no breakpoint runs ok.
The solution was to remove gem 'debug' from Gemfile.
The solution was to remove gem 'debug' from Gemfile.