Skip to content

Commit

Permalink
Add launch.json and tasks.json
Browse files Browse the repository at this point in the history
  • Loading branch information
okalachev committed Jul 25, 2024
1 parent 9bbea35 commit 5c656c4
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
build/
tools/log/
.dependencies
.vscode/*
!.vscode/settings.json
!.vscode/c_cpp_properties.json
!.vscode/tasks.json
Expand Down
25 changes: 25 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug simulation",
"type": "cppdbg",
"request": "launch",
"program": "/usr/bin/gzserver",
"osx": {
"program": "/opt/homebrew/bin/gzserver",
"MIMode": "lldb",
},
"args": ["--verbose", "${workspaceFolder}/gazebo/flix.world"],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [
{"name": "GAZEBO_MODEL_PATH", "value": "${workspaceFolder}/gazebo/models"},
{"name": "GAZEBO_PLUGIN_PATH", "value": "${workspaceFolder}/gazebo/build"}
],
"MIMode": "gdb",
"preLaunchTask": "Build simulator",
"externalConsole": true,
},
]
}
31 changes: 31 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"tasks": [
{
"label": "Build firmware",
"type": "shell",
"command": "make",
"problemMatcher": [ "$gcc" ],
"presentation": { "clear": true, "showReuseMessage": false },
},
{
"label": "Upload firmware",
"type": "shell",
"command": "make upload",
"problemMatcher": [ "$gcc" ],
"presentation": { "clear": true, "showReuseMessage": false }
},
{
"label": "Build simulator",
"type": "shell",
"command": "make build_simulator",
"problemMatcher": [ "$gcc" ],
"presentation": { "clear": true, "showReuseMessage": false }
},
{
"label": "Clean",
"type": "shell",
"command": "make clean",
}
],
"version": "2.0.0"
}

0 comments on commit 5c656c4

Please sign in to comment.