Skip to content

Enabling easier debug #22

@johnarwe

Description

@johnarwe

Breaking this question off from issue #19 into a separate discussion, since the initial response was not immediate consensus. Prior discussion from that issue copied here for the reader's convenience:

johnarwe:

@0tho , how would you feel about me adding one or more commands to toggle console.log calls for various "topics" (all defaulting to off)? In debugging the causes of these issues, I added "more than a few" such calls that could be grouped into logical units (one around lifecycle events that drive parsing, one around actual rule parsing, ...). I'm a tiny bit reluctant to just remove what I added, OTOH I certainly don't want npp to flood the log unless a human has consciously requested doing so. I'm thinking they'd only be accessible via the command palette, although I would not object if you wanted them hung off the Packages > npp entry as well.

otho:

Wouldn't many console.log pollute the code with no other reason to exist other than debugging?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions