You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.pryifLitCLI.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.
The text was updated successfully, but these errors were encountered:
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:
Into this:
Is there a better way to achieve this in Pry?
Ideally I wouldn't override
require
orrequire_relative
, so that Lit can work out of the box with other frameworks that auto-require.The text was updated successfully, but these errors were encountered: