Skip to content

Commit 08c3f76

Browse files
committed
add core dump
1 parent e7a82ae commit 08c3f76

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/extension.ts

+11-8
Original file line numberDiff line numberDiff line change
@@ -3072,20 +3072,23 @@ export async function activate(context: vscode.ExtensionContext) {
30723072
"Successfully created ELF file from the info received (espcoredump.py)",
30733073
});
30743074
try {
3075-
debugAdapterManager.configureAdapter({
3076-
isPostMortemDebugMode: true,
3077-
elfFile: resp.prog,
3078-
coreDumpFile: coreElfFilePath,
3079-
isOocdDisabled: true,
3080-
});
30813075
const workspaceFolder = vscode.workspace.getWorkspaceFolder(
30823076
workspaceRoot
30833077
);
30843078
await vscode.debug.startDebugging(workspaceFolder, {
30853079
name: "Core Dump Debug",
3086-
type: "espidf",
3087-
request: "launch",
30883080
sessionID: "core-dump.debug.session.ws",
3081+
type: "gdbtarget",
3082+
request: "attach",
3083+
gdb: gdbPath,
3084+
program: resp.prog,
3085+
logFile: `${path.join(
3086+
workspaceRoot.fsPath,
3087+
"coredump.log"
3088+
)}`,
3089+
target: {
3090+
connectCommands: [`core ${coreElfFilePath}`],
3091+
},
30893092
});
30903093
vscode.debug.onDidTerminateDebugSession((session) => {
30913094
if (

0 commit comments

Comments
 (0)