Skip to content

Use pid to determine program if one is not configured for local attach#1230

Open
OEP wants to merge 5 commits intomicrosoft:mainfrom
OEP:use-pid-for-program
Open

Use pid to determine program if one is not configured for local attach#1230
OEP wants to merge 5 commits intomicrosoft:mainfrom
OEP:use-pid-for-program

Conversation

@OEP
Copy link
Copy Markdown

@OEP OEP commented Oct 16, 2021

This makes the "program" configuration optional for local attach cases. The configured program is always preferred if it is defined.

This was stemmed from a discussion over in microsoft/vscode-cpptools#5713 where another user had suggested a change like this based on feedback from one of the maintainers, but I didn't see an open pull request for it. The goal was to ultimately relax requiring the program configuration key to be set while debugging with local attach by pid on Linux. If this is merged, I think the C++ plugin's settings schema would also need to be altered to relax the program requirement.

Word of warning: I wasn't able to figure out the debug procedure for the VSCode C++ extension to verify this change, but I thought it was small enough to at least propose for discussion.

I thought I should note there is a pretty good workaround I saw in microsoft/vscode-cpptools#1272 which suggests using the procfs to infer the executable within VSCode's settings system.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants