mirror of
https://github.com/lihop/godot-xterm.git
synced 2024-11-10 04:40:25 +01:00
Add VSCode launch configuration for debugging tests
This commit is contained in:
parent
95c8974ebf
commit
ed05f79073
1 changed files with 39 additions and 11 deletions
|
@ -5,11 +5,13 @@
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "cpp - Build and debug active file",
|
"name": "Editor (gdb) Launch",
|
||||||
"type": "cppdbg",
|
"type": "cppdbg",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "/run/current-system/sw/bin/godot",
|
"program": "/run/current-system/sw/bin/godot",
|
||||||
"args": [],
|
"args": [
|
||||||
|
"--editor",
|
||||||
|
],
|
||||||
"stopAtEntry": false,
|
"stopAtEntry": false,
|
||||||
"cwd": "${workspaceFolder}",
|
"cwd": "${workspaceFolder}",
|
||||||
"environment": [],
|
"environment": [],
|
||||||
|
@ -19,15 +21,41 @@
|
||||||
{
|
{
|
||||||
"description": "Enable pretty-printing for gdb",
|
"description": "Enable pretty-printing for gdb",
|
||||||
"text": "-enable-pretty-printing",
|
"text": "-enable-pretty-printing",
|
||||||
"ignoreFailures": true
|
"ignoreFailures": true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Set Disassembly Flavor to Intel",
|
||||||
|
"text": "-gdb-set disassembly-flavor intel",
|
||||||
|
"ignoreFailures": true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Debug forked child process",
|
||||||
|
"text": "-gdb-set follow-fork-mode child",
|
||||||
},
|
},
|
||||||
//{
|
|
||||||
// "description": "Debug forked child process",
|
|
||||||
// "text": "-gdb-set follow-fork-mode child",
|
|
||||||
//}
|
|
||||||
],
|
],
|
||||||
"preLaunchTask": "build",
|
},
|
||||||
"miDebuggerPath": "gdb"
|
{
|
||||||
}
|
"name": "Test (gdb) Launch",
|
||||||
]
|
"type": "cppdbg",
|
||||||
|
"request": "launch",
|
||||||
|
"program": "/run/current-system/sw/bin/godot",
|
||||||
|
"args": [
|
||||||
|
"--no-window",
|
||||||
|
"-s",
|
||||||
|
"addons/gut/gut_cmdln.gd"
|
||||||
|
],
|
||||||
|
"stopAtEntry": false,
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"environment": [],
|
||||||
|
"externalConsole": false,
|
||||||
|
"MIMode": "gdb",
|
||||||
|
"setupCommands": [
|
||||||
|
{
|
||||||
|
"description": "Enable pretty-printing for gdb",
|
||||||
|
"text": "-enable-pretty-printing",
|
||||||
|
"ignoreFailures": true,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
}
|
}
|
Loading…
Reference in a new issue