Skip to content

Conversation

@Subham-KRLX
Copy link

Fixes #14046

Add support for program parameter in attach configurations to attach to processes by executable name, similar to LLDB extension.

Example:

json
{
"type": "cppvsdbg",
"request": "attach",
"program": "myprogram.exe"
}
Automatically finds matching process, prompts if multiple matches. Backward compatible with existing processId configurations.

@Subham-KRLX Subham-KRLX requested a review from a team as a code owner December 14, 2025 07:25
@github-project-automation github-project-automation bot moved this to Pull Request in cpptools Dec 14, 2025
@sean-mcmanus
Copy link
Contributor

@Subham-KRLX It looks like there are compile errors: src/Debugger/configurationProvider.ts(361,40): error TS2339: Property 'findProcessByProgramName' does not exist on type 'DebugConfigurationProvider'.
src/Debugger/configurationProvider.ts(1340,19): error TS6133: 'findProcessByProgramName' is declared but its value is never read.

Subham-KRLX and others added 2 commits December 19, 2025 11:52
Move the findProcessByProgramName private method from ConfigurationSnippetProvider
class to DebugConfigurationProvider class where it belongs and is called.

This fixes:
- TS2339: Property 'findProcessByProgramName' does not exist on type 'DebugConfigurationProvider'
- TS6133: 'findProcessByProgramName' is declared but its value is never read
@Subham-KRLX
Copy link
Author

@sean-mcmanus We've resolved both compilation errors by moving the findProcessByProgramName method to the correct location inside the DebugConfigurationProvider class. The fix has been committed and pushed to the feature/attach-by-program-name branch. The TypeScript compilation errors are now resolved.

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

Labels

None yet

2 participants