From 3a54546cbbbda6ddf01722a35381cdad86b22f31 Mon Sep 17 00:00:00 2001 From: Gatsby Van Date: Thu, 21 Dec 2023 23:08:58 +0800 Subject: [PATCH] add debug settings. --- .vscode/launch.json | 34 ++++++++++++++++++++++++++++++++++ .vscode/tasks.json | 30 ++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..e77df35 --- /dev/null +++ b/.vscode/launch.json @@ -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 + } + ] + } + + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..1c99c76 --- /dev/null +++ b/.vscode/tasks.json @@ -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"] + } + ] +} \ No newline at end of file