DEV: Use binding.pry instead of byebug for system pause_test (#19420)

binding.pry gives a nicer syntax-highlighted environment
and better formatting for inspecting objects, and we still
have the byebug continue/step/next commands (which you can
also alias via .pryrc) via the pry-byebug gem
This commit is contained in:
Martin Brennan 2022-12-12 15:13:57 +10:00 committed by GitHub
parent f5b464ead5
commit b6340c0d74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ module SystemHelpers
ask(
"\n\e[33mTest paused, press enter to resume, type `d` and press enter to start debugger.\e[0m",
)
byebug if result == "d" # rubocop:disable Lint/Debugger
binding.pry if result == "d" # rubocop:disable Lint/Debugger
self
end