Add Configuration To Load Core Dumps In VSCode Debugger

This commit is contained in:
Thomas A 2023-03-28 11:37:22 -07:00
parent b23cfe93d3
commit e56511bd14

25
.vscode/launch.json vendored
View File

@ -9,8 +9,31 @@
"request": "launch",
"name": "Debug darling-coredump",
"program": "${workspaceFolder}/build/src/hosttools/darling-coredump",
"args": ["core_dump"],
"args": ["${input:linuxCoreDumpFileName}"],
"cwd": "${workspaceFolder}"
},
// Based on https://stackoverflow.com/a/57848966
{
"type": "lldb",
"request": "custom",
"name": "Open Darling Core Dump",
"initCommands": [
"target create -c ${input:convertedCoreDumpFileName}"
]
}
],
"inputs": [
{
"id": "linuxCoreDumpFileName",
"type": "promptString",
"description": "Enter the path to the core dump that needs to be converted",
"default": ""
},
{
"id": "convertedCoreDumpFileName",
"type": "promptString",
"description": "Enter the path to the Darling core dump",
"default": ""
}
]
}