Commit 08c3f76 1 parent e7a82ae commit 08c3f76 Copy full SHA for 08c3f76
File tree 1 file changed +11
-8
lines changed
1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -3072,20 +3072,23 @@ export async function activate(context: vscode.ExtensionContext) {
3072
3072
"Successfully created ELF file from the info received (espcoredump.py)" ,
3073
3073
} ) ;
3074
3074
try {
3075
- debugAdapterManager . configureAdapter ( {
3076
- isPostMortemDebugMode : true ,
3077
- elfFile : resp . prog ,
3078
- coreDumpFile : coreElfFilePath ,
3079
- isOocdDisabled : true ,
3080
- } ) ;
3081
3075
const workspaceFolder = vscode . workspace . getWorkspaceFolder (
3082
3076
workspaceRoot
3083
3077
) ;
3084
3078
await vscode . debug . startDebugging ( workspaceFolder , {
3085
3079
name : "Core Dump Debug" ,
3086
- type : "espidf" ,
3087
- request : "launch" ,
3088
3080
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
+ } ,
3089
3092
} ) ;
3090
3093
vscode . debug . onDidTerminateDebugSession ( ( session ) => {
3091
3094
if (
You can’t perform that action at this time.
0 commit comments