deivid-rodriguez/byebug

Extend documentation explaining Byebug.mode = :off

estani opened this issue · 0 comments

It's not uncommon to start byebug in a loop and having to stop everything as it cannot be turned off.

The simplest solution would be to document: Byebug.mode

Byebug.mode = :off

This effectively turns everything off (not always desired, but already sorts out some cases)

Perhaps better would be to automatically add a breakpoint on the byebug method or the next one (if possible) instead of just calling Byebug.attach.