Skip to content
Snippets Groups Projects
Commit cb038f0c authored by Joakim Hunskaar's avatar Joakim Hunskaar
Browse files

added new launch config and build task

parent 91a590ad
No related branches found
No related tags found
1 merge request!12added new launch config and build task
......@@ -8,7 +8,34 @@
"args": [],
"cwd": "${workspaceFolder}",
"preLaunchTask": "Build Executable",
"internalConsoleOptions": "neverOpen",
"internalConsoleOptions": "neverOpen"
},
{
"name": "C/C++: TDT4102 Build and Run Debug",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/builddir/program",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"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
}
],
"preLaunchTask": "TDT4102 Build Executable",
"miDebuggerPath": "gdb"
}
]
],
"version": "2.0.0"
}
\ No newline at end of file
......@@ -4,8 +4,29 @@
{
"type": "shell",
"label": "Build Executable",
"command": "meson compile -Cbuilddir",
"group": "build",
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": true,
"clear": true
},
"problemMatcher": []
},
{
"type": "cppbuild",
"label": "TDT4102 Build Executable",
"command": "meson",
"args": ["compile", "-Cbuilddir"],
"args": [
"compile",
"-Cbuilddir"
],
"options": {
"cwd": "${workspaceFolder}"
},
"group": {
"kind": "build",
"isDefault": true
......@@ -17,7 +38,8 @@
"panel": "shared",
"showReuseMessage": true,
"clear": true
}
},
"detail": "Task generated by TDT4102 ."
}
]
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment