gdb -p PID
For 1 and 2 we used rosmon in ros1, but I don’t know an alternative to this for ros2. I would be interested if this exists.