Loading

Uli SDK

Appendix B

20.Appendix B

20.1 VS Code tasks.json

{
  // See https://go.microsoft.com/fwlink/?LinkId=733558
  // for the documentation about the tasks.json format
  “version”: “2.0.0”,
  “tasks”: [
    {
      “label”: “Clean”,
      “type”: “shell”,
      “command”: “bazel clean”
    },
    {
      “label”: “Build dash_board (Debug)”,
      “type”: “shell”,
      “command”: “bazel build apps/dash_board –compilation_mode=dbg –strip=sometimes”
    },
    {
      “label”: “Build apps/nm”,
      “type”: “shell”,
      “command”: “bazel build apps/nm”,
      “problemMatcher”: []
    },
    {
      “label”: “Package local apps/nm”,
      “type”: “shell”,
      “command”: “./build/deploy.sh -h localhost -p //apps/nm:nm-pkg -d x86_64”
    },
    {
      “label”: “Package jetson apps/nm”,
      “type”: “shell”,
      “command”: “./build/deploy.sh -h ip-of-jetson -p //apps/nm:nm-pkg -d jetpack43”
        }
  ]
}

20.2 VS Code launch.json

{
  “configurations”: [
  {
    “name”: “dash_board (debug)”,
    “preLaunchTask”: “Build dash_board (Debug)”,
    “type”: “cppdbg”,
    “request”: “launch”,
    “program”: “${workspaceFolder}/bazel-bin/apps/dash_board/dash_board”,
    “args”: [],
    “stopAtEntry”: false,
    “cwd”: “${workspaceFolder}”,
    “environment”: [],
    “externalConsole”: false,
    “MIMode”: “gdb”,
    “setupCommands”: [
      {
        “description”: “Enable pretty-printing for gdb”,
        “text”: “-enable-pretty-printing”,
        “ignoreFailures”: true
      }
    ]
  }
  ]
}