Skip to content

Source Map Debugger Modal: Special Case Syntax Errors for Debug IDs #91222

@lforst

Description

@lforst

Syntax errors will cause debug IDs not to be added because the JS crashes in the evaluation phase, which is before the debug ID snippet on top of the file can run.

The good thing is that if you have a syntax error, you likely don’t even want your code to be source mapped, because you want the actual syntax to be shown, not the original code before transpilation.

I think it would make a lot of sense to explain this to users in the source map debugger modal when we see an error with type "SyntaxError".

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