mirror of
https://github.com/darlinghq/darling.git
synced 2024-11-26 22:00:29 +00:00
Add Configuration To Load Core Dumps In VSCode Debugger
This commit is contained in:
parent
b23cfe93d3
commit
e56511bd14
25
.vscode/launch.json
vendored
25
.vscode/launch.json
vendored
@ -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": ""
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user