add debug settings.

This commit is contained in:
Gatsby Van
2023-12-21 23:08:58 +08:00
parent 5f6bdf83d6
commit 3a54546cbb
2 changed files with 64 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
{
// 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": "(gdb) Launch GE linklayer_emulate_unit_test",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/datalink814_ge/unit_test/linklayer_emulate_unit_test.exe",
"args": [],
"preLaunchTask": "linklayer_emulate_unit_test",
"stopAtEntry": false,
"cwd": "${workspaceFolder}/datalink814_ge/unit_test",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
]
}
]
}
+30
View File
@@ -0,0 +1,30 @@
{
"version": "2.0.0",
"reveal": "always",
"tasks": [
{
"label": "tmc_emulate_unit_test",
"command": "bash",
"type": "shell",
"group": {
"kind": "build"
},
"options": {
"cwd": "${workspaceFolder}/datalink814_ge/unit_test"
},
"args": ["-c", "make tmc_emulate_unit_test.exe"]
},
{
"label": "linklayer_emulate_unit_test",
"command": "bash",
"type": "shell",
"group": {
"kind": "build"
},
"options": {
"cwd": "${workspaceFolder}/datalink814_ge/unit_test"
},
"args": ["-c", "make linklayer_emulate_unit_test.exe"]
}
]
}