Closed
Description
Hi guys
I've created a little command line tool which helps with logging and debugging.
I have a "step" feature working where I can step through the code one log at a time by pressing the Enter key. At any step you are also able to "Press P for Pry" and enter a binding for the line of the log that you've stepped into. To do this I have to put a binding.pry in a block for the log method. Unfortunately this requires some runtime hackery to turn this:
lit("message")
Into this:
lit("message") { binding.pry if LitCLI.is_prying? }
Is there a better way to achieve this in Pry?
Ideally I wouldn't override require
or require_relative
, so that Lit can work out of the box with other frameworks that auto-require.
Metadata
Metadata
Assignees
Labels
No labels