Skip to content

Lit CLI integration 🔥 #2178

Closed
Closed
@maedi

Description

@maedi

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions