This is a small tutorial on how to debug a ROS2 C++ node usign VSCode.
This implementation was done using:
(Serial port or com port? - Serial ports are often refered as COM ports. It is the same to be short. You can read abut it in the Wiki article )