Insert Byebug into existing code or tests
mainInstead of starting the entire process with the byebug CLI, you can insert a breakpoint directly into your Ruby code or unit tests by calling the byebug method. This is useful for debugging specific parts of a larger application or within a test suite (like minitest).
To use this, ensure the byebug library is required (e.g., via ruby -rbyebug <file> or require 'byebug').
# Inside a method or test
def test_basic
byebug
solutions = []
# ...
end