Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DAP: source on not local fs #600

Merged
merged 1 commit into from
Mar 30, 2022
Merged

DAP: source on not local fs #600

merged 1 commit into from
Mar 30, 2022

Conversation

ko1
Copy link
Collaborator

@ko1 ko1 commented Mar 30, 2022

When debugging on the other machine (non-local fs) with TCP/IP,
the source should be sent each time.

This patch check the local filesystem or not and if it is not a
local filesystem, specify sourceReference (and VSCode send
source request to get a whole source code).

On the TCP/IP, debugger assumes it is non-local fs, but
'localfs':true in launch.json tells that VSCode and
debugger run on same machine (share the same local fs).

When debugging on the other machine (non-local fs) with TCP/IP,
the source should be sent each time.

This patch check the local filesystem or not and if it is not a
local filesystem, specify `sourceReference` (and VSCode send
`source` request to get a whole source code).

On the TCP/IP, debugger assumes it is non-local fs, but
`'localfs':true` in `launch.json` tells that VSCode and
debugger run on same machine (share the same local fs).
@ko1 ko1 merged commit 91985af into master Mar 30, 2022
@ko1 ko1 deleted the dap_localfs branch March 30, 2022 08:36
@st0012 st0012 mentioned this pull request Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant