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

Allow for run --debug-adapter to match breakpoints when source is running in a sandbox (Cherry-pick of #17566) #17583

Merged

Conversation

thejcannon
Copy link
Member

Fixes #17540

The key is that the DAP client is sending pathMappings, which normally sets remoteRoot to "." which for run isn't true.
There's no easy way to have the server set it's own mapping so we monkeypatch.

…unning in a sandbox (pantsbuild#17566)

Fixes pantsbuild#17540

The key is that the DAP client is sending `pathMappings`, which normally sets `remoteRoot` to `"."` which for `run` isn't true.
There's no easy way to have the server set it's own mapping so we monkeypatch.
@thejcannon thejcannon added the category:bugfix Bug fixes for released features label Nov 18, 2022
@thejcannon thejcannon merged commit ca0a231 into pantsbuild:2.14.x Nov 18, 2022
@thejcannon thejcannon deleted the cherry-pick-17566-to-2.14.x branch November 18, 2022 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bugfix Bug fixes for released features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants