Skip to content

Migrate to Debugger.setBreakpointByUrl #1076

Closed
@grouma

Description

@grouma

We currently set breakpoints by script ID. This has a number of drawbacks, especially around re-establishing breakpoints. There is an API to set breakpoints by URL. This API has the benefit of persisting across reloads.

Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in locations property. Further matching script parsing will result in subsequent breakpointResolved events issued. This logical breakpoint will survive page reloads.

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