Skip to content

Posix vs Win client #182

@zobo

Description

@zobo

Hello.

I'm working on the DAP for PHP (https://github.com/xdebug/vscode-php-debug/) and while testing an unusual setup scenario I came to a problem that I'm not sure how to properly solve.

It's regarding path format in the Source type part of StackTraceReqeust and others.

The setup that I had - this is because I did some debugging - was my IDE (neovim) was running in WSL (posix), the debuggee (php) was also running in WSL (posix) but the DAP was running on Win32 (within a VSCode debug session).

The problem that I faced was the code of DAP manipulates paths using https://www.npmjs.com/package/path that by default uses path format depending on the platform it runs on. I can also explicitly tell the library to either use posix or win32 format but the DAP has, as far as I can tell, no idea what platform the client (IDE) is running on.

I understand this is a veeeery specific corner case and probably irrelevant in real life, but I wanted to see if somebody else thinks this should somehow be covered either by a field in InitializeRequestArguments.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    *questionIssue represents a question, should be posted to StackOverflow (VS Code)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions