ROS2: how to get fastrtps logging output
I'm trying to debug some FASTRTPS rmw connectivity issues. How do I get debugging output from the FASTRTPS layer? If I feed in an xml file and there is any mistake in it I often get just this message:
terminate called after throwing an instance of 'eprosima::fastcdr::exception::NotEnoughMemoryException'
what(): Not enough memory in the buffer stream
This message is generated if e.g. a TCP transport is not found and for many other reasons. How can I get better debugging output?
No success when adding this to my code: