This is a small tutorial on how to debug a ROS2 C++ node usign VSCode.
This implementation was done using:
// usage: | |
// testDB := testhelpers.NewTestDatabase(t) | |
// defer testDB.Close(t) | |
// println(testDB.ConnectionString(t)) | |
package testhelpers | |
import ( | |
"context" | |
"fmt" | |
"testing" |
### | |
### [2023-06-19] UPDATE: Just tried to use my instructions again on a fresh install and it failed in a number of places. | |
###. Not sure if I'll update this gist (though I realise it seems to still have some traffic), but here's a list of | |
###. things to watch out for: | |
### - Check out the `nix-darwin` instructions, as they have changed. | |
### - There's a home manager gotcha https://github.com/nix-community/home-manager/issues/4026 | |
### | |
# I found some good resources but they seem to do a bit too much (maybe from a time when there were more bugs). | |
# So here's a minimal Gist which worked for me as an install on a new M1 Pro. |