1
0
mirror of https://gitlab.com/lander-team/lander-cpp.git synced 2025-07-23 22:51:26 +00:00

add debugging

This commit is contained in:
2021-09-16 18:09:38 -07:00
parent 33ebdabc07
commit dcd15f161d
4 changed files with 43 additions and 8 deletions

29
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,29 @@
{
// 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": "g++ - Build and debug simulation",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/main.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "gdb.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "Debug"
}
]
}

View File

@@ -43,4 +43,5 @@
"C_Cpp.clang_format_fallbackStyle": "LLVM",
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"python.formatting.provider": "black",
}

8
.vscode/tasks.json vendored
View File

@@ -3,15 +3,15 @@
"tasks": [
{
"type": "cppbuild",
"label": "Debug",
"label": "Build simulation",
"command": "g++",
"args": [
"-g",
"${workspaceFolder}\\src\\main.cpp",
"${workspaceFolder}/src/main.cpp",
"-o",
"${workspaceFolder}\\main.exe",
"${workspaceFolder}/main.exe",
"-I",
"${workspaceFolder}\\include"
"${workspaceFolder}/include"
],
"options": {
"cwd": "${fileDirname}"