Commit 35304c19 by Amir Aharon

add tasks and fix debug settings

parent 4491b464
...@@ -35,7 +35,10 @@ ...@@ -35,7 +35,10 @@
"/usr/include/x86_64-linux-gnu", "/usr/include/x86_64-linux-gnu",
"/usr/include", "/usr/include",
"${workspaceRoot}/../3party", "${workspaceRoot}/../3party",
"${workspaceRoot}/src" "${workspaceRoot}/src",
"/usr/include/c++/5",
"/usr/include/x86_64-linux-gnu/c++/5",
"${workspaceRoot}/../3party/cereal/include"
], ],
"compileCommands": "./compile_commands.json", "compileCommands": "./compile_commands.json",
"defines": [], "defines": [],
...@@ -50,7 +53,9 @@ ...@@ -50,7 +53,9 @@
"/usr/lib/gcc/x86_64-linux-gnu/4.9/include-fixed", "/usr/lib/gcc/x86_64-linux-gnu/4.9/include-fixed",
"/usr/include/x86_64-linux-gnu", "/usr/include/x86_64-linux-gnu",
"/usr/include", "/usr/include",
"${workspaceRoot}" "${workspaceRoot}/../3party",
"${workspaceRoot}/src",
"/usr/include/c++/5"
], ],
"limitSymbolsToIncludedHeaders": true, "limitSymbolsToIncludedHeaders": true,
"databaseFilename": "" "databaseFilename": ""
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
"preLaunchTask": "start-gdbserver", "preLaunchTask": "start-gdbserver",
"miDebuggerPath": "/usr/bin/gdb", "miDebuggerPath": "/usr/bin/gdb",
"targetArchitecture": "x64", "targetArchitecture": "x64",
"program": "${workspaceRoot}/bin/test_Microservice", "program": "${workspaceRoot}/build/bin/test_Microservice",
"args": [], "args": [],
"stopAtEntry": false, "stopAtEntry": false,
"cwd": "${workspaceRoot}", "cwd": "${workspaceRoot}",
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
// "preLaunchTask": "start-gdbserver", // "preLaunchTask": "start-gdbserver",
"miDebuggerPath": "/usr/bin/gdb", "miDebuggerPath": "/usr/bin/gdb",
"targetArchitecture": "x64", "targetArchitecture": "x64",
"program": "${workspaceRoot}/bin/test_Microservice", "program": "${workspaceRoot}/build/bin/test_Microservice",
"args": [], "args": [],
"stopAtEntry": false, "stopAtEntry": false,
"cwd": "${workspaceRoot}", "cwd": "${workspaceRoot}",
......
...@@ -32,20 +32,7 @@ ...@@ -32,20 +32,7 @@
"command": "docker exec -it devenv make", "command": "docker exec -it devenv make",
"problemMatcher": [ "problemMatcher": [
"$gcc" "$gcc"
] ]
// "problemMatcher": {
// "severity": "error",
// "base": "$gcc",
// "fileLocation": ["relative","${workspaceRoot}"],
// "pattern": {
// "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
// "file": 1,
// "line": 2,
// "column": 3,
// "severity": 4,
// "message": 5
// }
// }
}, },
{ {
"label": "clean", "label": "clean",
...@@ -59,7 +46,7 @@ ...@@ -59,7 +46,7 @@
"label": "start-gdbserver", "label": "start-gdbserver",
"type": "shell", "type": "shell",
// not using -it so that it can be a preLaunchTask // not using -it so that it can be a preLaunchTask
"command": "docker exec -d devenv gdbserver :2000 bin/test_Microservice", "command": "docker exec -d devenv gdbserver :2000 build/bin/test_Microservice",
"problemMatcher": [] "problemMatcher": []
}, },
{ {
...@@ -68,6 +55,21 @@ ...@@ -68,6 +55,21 @@
// not using -it so that it can be a preLaunchTask // not using -it so that it can be a preLaunchTask
"command": "docker build -t municipalitybank.com:5050/ipgallery.common.cpp/microservice/develop .", "command": "docker build -t municipalitybank.com:5050/ipgallery.common.cpp/microservice/develop .",
"problemMatcher": [] "problemMatcher": []
},
{
"label": "run app",
"type": "shell",
// not using -it so that it can be a preLaunchTask
"command": "docker exec -d devenv build/bin/test_Microservice",
"problemMatcher": []
}
,
{
"label": "stop app",
"type": "shell",
// not using -it so that it can be a preLaunchTask
"command": "docker exec -d devenv pkill test_Micro",
"problemMatcher": []
} }
] ]
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment