Skip to content

Is it possible to debug a Language Service Plugin? #32342

@anurbol

Description

@anurbol

Hello! My plugin became pretty complex to the point I need to debug it.

What I have tried is writing debugger in the code and running
node --inspect-brk path/to/tsc, but the script never pauses at the breakpoint provided.

Any directions, please?

P.S. Logging works, but is a bit tedious, especially for figuring out the exact flow path of the program.

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions