Skip to content

Comments

DAP: source on not local fs#600

Merged
ko1 merged 1 commit intomasterfrom
dap_localfs
Mar 30, 2022
Merged

DAP: source on not local fs#600
ko1 merged 1 commit intomasterfrom
dap_localfs

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant