There is a tool in luma to debugging, but if you are using a Daemon to run Linux probably is not useful. There are ways to debug in wireless mode if that's the case, i found some info here: https://bmaupin.github.io/wiki/other/3ds/3ds-debugging.html
There are more info in devkitpro, but im not...