diff --git a/src/extension.ts b/src/extension.ts index edd82f6d5..a34b5060c 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -3107,20 +3107,23 @@ export async function activate(context: vscode.ExtensionContext) { "Successfully created ELF file from the info received (espcoredump.py)", }); try { - debugAdapterManager.configureAdapter({ - isPostMortemDebugMode: true, - elfFile: resp.prog, - coreDumpFile: coreElfFilePath, - isOocdDisabled: true, - }); const workspaceFolder = vscode.workspace.getWorkspaceFolder( workspaceRoot ); await vscode.debug.startDebugging(workspaceFolder, { name: "Core Dump Debug", - type: "espidf", - request: "launch", sessionID: "core-dump.debug.session.ws", + type: "gdbtarget", + request: "attach", + gdb: gdbPath, + program: resp.prog, + logFile: `${path.join( + workspaceRoot.fsPath, + "coredump.log" + )}`, + target: { + connectCommands: [`core ${coreElfFilePath}`], + }, }); vscode.debug.onDidTerminateDebugSession((session) => { if (