https://jan-kolarik.github.io/posts/atmega-debug-linux/
Debugging Arduino without additional hardware