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:
29
.vscode/launch.json
vendored
Normal file
29
.vscode/launch.json
vendored
Normal 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"
|
||||
}
|
||||
]
|
||||
}
|
1
.vscode/settings.json
vendored
1
.vscode/settings.json
vendored
@@ -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
8
.vscode/tasks.json
vendored
@@ -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}"
|
||||
|
Reference in New Issue
Block a user