2021-07-02 19:27:34 +02:00
|
|
|
{
|
2024-02-12 22:50:19 +01:00
|
|
|
// Use IntelliSense to learn about possible attributes.
|
|
|
|
// Hover to view descriptions of existing attributes.
|
|
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
|
|
"version": "0.2.0",
|
|
|
|
"configurations": [
|
|
|
|
{
|
|
|
|
"name": "Main (gdb) Launch",
|
|
|
|
"type": "cppdbg",
|
|
|
|
"request": "launch",
|
|
|
|
"program": "/run/current-system/sw/bin/godot4",
|
|
|
|
"args": ["${workspaceFolder}/examples/menu/menu.tscn"],
|
|
|
|
"stopAtEntry": false,
|
|
|
|
"cwd": "${workspaceFolder}",
|
|
|
|
"environment": [],
|
|
|
|
"externalConsole": false,
|
|
|
|
"MIMode": "gdb",
|
|
|
|
"setupCommands": [
|
2022-08-12 23:32:30 +02:00
|
|
|
{
|
2024-02-12 22:50:19 +01:00
|
|
|
"description": "Enable pretty-printing for gdb",
|
|
|
|
"text": "-enable-pretty-printing",
|
|
|
|
"ignoreFailures": true
|
2022-08-12 23:32:30 +02:00
|
|
|
},
|
2021-07-02 19:27:34 +02:00
|
|
|
{
|
2024-02-12 22:50:19 +01:00
|
|
|
"description": "Set Disassembly Flavor to Intel",
|
|
|
|
"text": "-gdb-set disassembly-flavor intel",
|
|
|
|
"ignoreFailures": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Editor (gdb) Launch",
|
|
|
|
"type": "cppdbg",
|
|
|
|
"request": "launch",
|
|
|
|
"program": "/run/current-system/sw/bin/godot4",
|
|
|
|
"args": ["--editor"],
|
|
|
|
"stopAtEntry": false,
|
|
|
|
"cwd": "${workspaceFolder}",
|
|
|
|
"environment": [],
|
|
|
|
"externalConsole": false,
|
|
|
|
"MIMode": "gdb",
|
|
|
|
"setupCommands": [
|
|
|
|
{
|
|
|
|
"description": "Enable pretty-printing for gdb",
|
|
|
|
"text": "-enable-pretty-printing",
|
|
|
|
"ignoreFailures": true
|
2022-06-23 17:27:47 +02:00
|
|
|
},
|
|
|
|
{
|
2024-02-12 22:50:19 +01:00
|
|
|
"description": "Set Disassembly Flavor to Intel",
|
|
|
|
"text": "-gdb-set disassembly-flavor intel",
|
|
|
|
"ignoreFailures": true
|
2022-06-23 17:27:47 +02:00
|
|
|
},
|
2024-02-12 22:50:19 +01:00
|
|
|
{
|
|
|
|
"description": "Debug forked child process",
|
|
|
|
"text": "-gdb-set follow-fork-mode child"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Test (gdb) Launch",
|
|
|
|
"type": "cppdbg",
|
|
|
|
"request": "launch",
|
|
|
|
"program": "/run/current-system/sw/bin/godot4",
|
|
|
|
"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
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|