Skip to content

Commit

Permalink
chore: VSCode enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
as-iotex authored and as-iotex committed Apr 17, 2022
1 parent 943c612 commit a3d9e3c
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"twxs.cmake",
"eamodio.gitlens",
"zxh404.vscode-proto3",
"ms-azuretools.vscode-docker"
"ms-azuretools.vscode-docker",
"ms-python.python",
"eriklynd.json-tools"
],

"containerEnv": {
Expand Down
34 changes: 29 additions & 5 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,38 @@
"version": "0.2.0",
"configurations": [
{
"name": "Unit tests - launch",
"name": "Unit tests: launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/tests/iotex_unit_tests",
// "args": [ "--gtest_filter=\"*.Transaction*\""],
"args": [
// "--gtest_filter=\"*.ReadContract*\""
],
"cwd": "${workspaceFolder}",
"MIMode": "gdb",
"miDebuggerPath": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": false
},
{
"description": "Enable all-exceptions",
"text": "catch throw",
"ignoreFailures": true
}
],
"stopAtEntry": false
},
{
"name": "Unit tests: rebuild and launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/tests/iotex_unit_tests",
"args": [
// "--gtest_filter=\"*.ReadContract*\""
],
"cwd": "${workspaceFolder}",
"MIMode": "gdb",
"miDebuggerPath": "gdb",
Expand All @@ -24,9 +51,6 @@
}
],
"stopAtEntry": false,
// "sourceFileMap": {
// // "lookedSource": "actualSource"
// }
},
{
"name": "Server fake: launch",
Expand Down
15 changes: 14 additions & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"type": "shell",
"label": "Arduino: Build unit tests",
"command": "cd ${workspaceRoot}/build && cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON ../ && make -j 6",
"command": "cd ${workspaceRoot}/build && cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON ../ && make",
"options": {
"cwd": "${workspaceRoot}/"
},
Expand Down Expand Up @@ -46,6 +46,19 @@
"problemMatcher": [
"$gcc"
],
"dependsOn": [ "Http-grpc server: generate protobufs" ],
"dependsOrder": "sequence"
},
{
"type": "shell",
"label": "Http-grpc server: restart",
"command": "killall envoy && envoy -c envoy-conf.yaml",
"options": {
"cwd": "${workspaceRoot}/tools/server"
},
"problemMatcher": [
"$gcc"
],
"dependsOn": [],
"dependsOrder": "sequence"
},
Expand Down

0 comments on commit a3d9e3c

Please sign in to comment.