mirror of
https://github.com/darlinghq/darling.git
synced 2024-11-23 04:09:43 +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",
|
"request": "launch",
|
||||||
"name": "Debug darling-coredump",
|
"name": "Debug darling-coredump",
|
||||||
"program": "${workspaceFolder}/build/src/hosttools/darling-coredump",
|
"program": "${workspaceFolder}/build/src/hosttools/darling-coredump",
|
||||||
"args": ["core_dump"],
|
"args": ["${input:linuxCoreDumpFileName}"],
|
||||||
"cwd": "${workspaceFolder}"
|
"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