summaryrefslogtreecommitdiff
path: root/.vscode
diff options
context:
space:
mode:
authorEric Dao <eric@erickhangdao.com>2023-05-12 14:09:07 -0400
committerEric Dao <eric@erickhangdao.com>2023-05-12 14:09:07 -0400
commit191e4bd8beae134295d481773823142d2fdc6a98 (patch)
treeaaca4e7f8e229f9bd551d9bb1583b8ecd7a59d4a /.vscode
parent186daed7e179241377c117e9d208ccd301d4d712 (diff)
downloadura-master.tar.gz
ura-master.tar.bz2
ura-master.zip
refactored tool chain setup, able to debug and run from vscode nowHEADmaster
Diffstat (limited to '.vscode')
-rw-r--r--.vscode/c_cpp_properties.json4
-rw-r--r--.vscode/launch.json18
-rw-r--r--.vscode/tasks.json48
3 files changed, 68 insertions, 2 deletions
diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json
index cd27e44..a0a4425 100644
--- a/.vscode/c_cpp_properties.json
+++ b/.vscode/c_cpp_properties.json
@@ -4,7 +4,6 @@
"name": "Win32",
"includePath": [
"${workspaceFolder}/**",
- "${workspaceFolder}/OASIS/C/Inc",
"/usr/include/x86_64-linux-gnu/openblas-pthread",
"/usr/include/x86_64-linux-gnu/c++/9"
],
@@ -15,7 +14,8 @@
],
"cStandard": "c11",
"cppStandard": "gnu++14",
- "intelliSenseMode": "windows-gcc-x86"
+ "intelliSenseMode": "windows-gcc-x86",
+ "configurationProvider": "ms-vscode.makefile-tools"
}
],
"version": 4
diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 0000000..98ce25f
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,18 @@
+{
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "name": "Debug",
+ "type": "cppdbg",
+ "request": "launch",
+ "program": "${workspaceFolder}/OASIS/c/build/model",
+ "args": [],
+ "stopAtEntry": false,
+ "cwd": "${workspaceFolder}",
+ "environment": [],
+ "externalConsole": true,
+ "MIMode": "gdb",
+ "miDebuggerPath": "/usr/bin/gdb"
+ }
+ ]
+}
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
new file mode 100644
index 0000000..075e6af
--- /dev/null
+++ b/.vscode/tasks.json
@@ -0,0 +1,48 @@
+{
+ "tasks": [
+ {
+ "type": "cppbuild",
+ "label": "C/C++: gcc build active file",
+ "command": "/usr/bin/gcc",
+ "args": [
+ "-fdiagnostics-color=always",
+ "-g",
+ "${file}",
+ "-o",
+ "${fileDirname}/${fileBasenameNoExtension}"
+ ],
+ "options": {
+ "cwd": "${fileDirname}"
+ },
+ "problemMatcher": [
+ "$gcc"
+ ],
+ "group": {
+ "kind": "build",
+ "isDefault": true
+ },
+ "detail": "Task generated by Debugger."
+ },
+ {
+ "type": "cppbuild",
+ "label": "C/C++: gcc-9 build active file",
+ "command": "/usr/bin/gcc-9",
+ "args": [
+ "-fdiagnostics-color=always",
+ "-g",
+ "${file}",
+ "-o",
+ "${fileDirname}/${fileBasenameNoExtension}"
+ ],
+ "options": {
+ "cwd": "${fileDirname}"
+ },
+ "problemMatcher": [
+ "$gcc"
+ ],
+ "group": "build",
+ "detail": "Task generated by Debugger."
+ }
+ ],
+ "version": "2.0.0"
+} \ No newline at end of file