What is the best way to debug the launcher ?

What is the best way to debug the launcher ?

login in gs in ssh

then killall run.py to kill the launcher

then cd ~/launcher

DISPLAY=:0 ./load.sh

I wouldn´t qualify this as the best, but modifying the launcher source and adding custom logs to the parts you want to debug is the easiest, otherwise you would need some python specific debugging tools

Just like the code below
cat /tmp/x.log