Skip to content

posix.resolve windows setBreakpoints wrong path #173

@mmitkevich

Description

@mmitkevich

Here you rely on correct behavior of posix.resolve and posix.relative

path = relative(this.trimCWD.replace(/\\/g, "/"), path.replace(/\\/g, "/"));

But it is not the case on Windows
as result paths like /a/b/C:\my\dir/and/so/on are sent with setBreakpoints

Probably it could be rewritten with some replaces without posix. For my purposes I had to patch this place but my solution is too hacky (just replace C:| with nothing)

possibly dup of #171

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