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

Refactor the debug launch configuration resolvers #4172

Merged
merged 1 commit into from
Sep 27, 2022

Conversation

andyleejordan
Copy link
Member

Some much needed TLC, especially now that VS Code with resolve its predefined variables used in configurations.

Do not set cwd for debug launch configurations

Instead, respect it if it exists, and otherwise consistently do not change it. Debugging will run in the session's current cwd, or if and only if the user set cwd on the launch config will it change.

Resolves #4082. My own testing seems to indicate this works well and as expected (consistently). However, I suspect we'll get some complaints when it rolls out.

Some much needed TLC, especially now that VS Code with resolve its
predefined variables used in configurations.

Do not set `cwd` for debug launch configurations

Instead, respect it if it exists, and otherwise consistently do not
change it. Debugging will run in the session's current `cwd`, or if and
only if the user set `cwd` on the launch config will it change.
@andyleejordan andyleejordan requested a review from a team September 15, 2022 01:25
@ghost ghost added Area-Debugging Issue-Bug A bug to squash. labels Sep 15, 2022
Copy link
Collaborator

@SeeminglyScience SeeminglyScience left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@andyleejordan andyleejordan merged commit 949fa79 into main Sep 27, 2022
@andyleejordan andyleejordan deleted the andschwa/debug-cwd branch September 27, 2022 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent behavior for working directory when running scripts
2 participants