## Setup C++ Intellisense paths
If you use CMake there is an easy way to setup all paths. Add to your `CMakeLists.txt`
```
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
```
Than press `Ctrl+Shift+P` (or `Ctrl+Cmd+P`) and select `C/Cpp Edit configurations`. Then add
```json
{
"configurations": [
{
...
"compileCommands": "${workspaceFolder}/build/compile_commands.json",
...
}
]
}
```
## Debug ROS applications
### ROS nodes
> TODO
### Others
Create a bash script that source the environment and run gdb, e.g.
```sh
#!/usr/bin/env bash
source ~/ws/devel/setup.bash
/usr/bin/gdb "$@"
```
Than in the `launch.json` add the `miDebuggerPath`, pointing to the script.