Skip to content
This repository was archived by the owner on Feb 1, 2022. It is now read-only.
This repository was archived by the owner on Feb 1, 2022. It is now read-only.

AIX: Breakpoint resolved isn't handled properly on restart #35

@hybrist

Description

@hybrist

See TODO in test/cli/preserve-breaks.test.js.

Expected output of breakpoints after restart:

#0 examples/three-lines.js:2
#0 examples/three-lines.js:3

Actual output (still showing the regex for matching the filename that should've been resolved):

#0 .*//path/to/node-inspect/examples/three-lines.js$:2
#1 .*//path/to/node-inspect/examples/three-lines.js$:3

These "fake filenames" are generated when setting a breakpoint in a file that has been loaded yet:

// inspect_repl.js
        if (!bp.location) { // Fake it for now.
          Object.assign(bp, {
            actualLocation: {
              scriptUrl: `.*/${script}$`,
              lineNumber: line - 1,
            },
          });

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