Fixes #6392

Turns a debug verb into a proc, allowing it to be called using advanced-proc or for easy revert in the future.