Skip to content

Commit 709194d

Browse files
committed
Fix: Restore program as required field for cppdbg attach configurations
MIEngine requires the program field for gdb/lldb debugging even in attach mode. Without it, debugging fails after the debugger starts. The program field serves dual purpose: finding the process by name (new feature) and providing symbol information to the debugger (existing MIEngine requirement). Updated documentation to clarify that program is required and explain why.
1 parent b0a4dba commit 709194d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Extension/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4770,7 +4770,9 @@
47704770
"attach": {
47714771
"type": "object",
47724772
"default": {},
4773-
"required": [],
4773+
"required": [
4774+
"program"
4775+
],
47744776
"properties": {
47754777
"targetArchitecture": {
47764778
"type": "string",

Extension/package.nls.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -932,9 +932,9 @@
932932
]
933933
},
934934
"c_cpp.debuggers.program.attach.markdownDescription": {
935-
"message": "Optional full path to the program executable. When specified, the debugger will search for a running process matching this executable path and attach to it. If multiple processes match, a selection prompt will be shown. Use either `program` or `processId`, not both.",
935+
"message": "Full path to the program executable. The debugger will search for a running process matching this executable path and attach to it. If multiple processes match, a selection prompt will be shown. This field is required to load debug symbols for the attached process.",
936936
"comment": [
937-
"{Locked=\"`program`\"} {Locked=\"`processId`\"}"
937+
"{Locked=\"`program`\"}"
938938
]
939939
},
940940
"c_cpp.debuggers.symbolSearchPath.description": "Semicolon separated list of directories to use to search for symbol (that is, pdb or .so) files. Example: \"c:\\dir1;c:\\dir2\".",

0 commit comments

Comments
 (0)