mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-05-28 15:34:31 +00:00
chore: Update vscode debug configurations
This commit is contained in:
parent
393c8ba4cb
commit
a211280891
40
.vscode/launch.json
vendored
40
.vscode/launch.json
vendored
@ -1,6 +1,45 @@
|
|||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
|
{
|
||||||
|
"name": "Launch QEMU and debug the kernel",
|
||||||
|
"type": "cppdbg",
|
||||||
|
"request": "launch",
|
||||||
|
"program": "${workspaceFolder}/fennix.elf",
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"args": [],
|
||||||
|
"targetArchitecture": "x64",
|
||||||
|
"MIMode": "gdb",
|
||||||
|
"miDebuggerPath": "${workspaceFolder}/../tools/cross/bin/x86_64-fennix-gdb",
|
||||||
|
"miDebuggerArgs": "",
|
||||||
|
"externalConsole": false,
|
||||||
|
"additionalSOLibSearchPath": "${workspaceFolder}",
|
||||||
|
"customLaunchSetupCommands": [
|
||||||
|
{
|
||||||
|
"text": "target remote localhost:1234",
|
||||||
|
"description": "Connect to QEMU remote debugger"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"setupCommands": [
|
||||||
|
{
|
||||||
|
"description": "Enable pretty-printing for gdb",
|
||||||
|
"text": "-enable-pretty-printing",
|
||||||
|
"ignoreFailures": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "set breakpoint pending on",
|
||||||
|
"description": "Make breakpoint pending on future shared library load."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "file ${workspaceFolder}/fennix.elf",
|
||||||
|
"description": "Load binary."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"text": "source ${workspaceFolder}/.gdbinit"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"preLaunchTask": "launch-qemu"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "Attach to a running VM instance",
|
"name": "Attach to a running VM instance",
|
||||||
"type": "cppdbg",
|
"type": "cppdbg",
|
||||||
@ -38,7 +77,6 @@
|
|||||||
"text": "source ${workspaceFolder}/.gdbinit"
|
"text": "source ${workspaceFolder}/.gdbinit"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"preLaunchTask": "launch-qemu"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Attach to VM w/utest",
|
"name": "Attach to VM w/utest",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user