Skip to content

Error stack trace sent to the inspector contains ANSI escape codes #28287

Closed
@joyeecheung

Description

@joyeecheung

Screen Shot 2019-06-19 at 4 39 06 PM

Refs: #27052

One solution may be skipping

er.stack = inspect(er, { colors });

If the inspector is listening. Another alternative is to pass a different stack trace to V8Inspector::exceptionThrown().

Although..it might even be possible to customize the styles displayed in the DevTools but then I don't suppose it's easy to add that to the inspector protocol so that every inspector client handles it properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    errorsIssues and PRs related to JavaScript errors originated in Node.js core.inspectorIssues and PRs related to the V8 inspector protocol

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions