Hi! After having a hard time getting to terms with the codebase for the gui I thought:
“Oh gosh darnit, I wish I could set some breakpoints and see what the heck this thing is doing in the background with all those variables and objects…”
So I got a’ diggin and surprisingly i found a way!
So first you gotta go through this guide to set it up in vscode:
and after that you connect to your zynthian with ssh and x-forwarding enabled.
ssh -Y email@example.com
Then you stop the zynthian service, with systemctl
systemctl stop zynthian.service
now you go back into vscode and open to the (remote) folder /zynthian/zynthian-ui, then select the main gui app (zynthian_gui.py) within that folder and go to the upper run menu, and click debug current file.
If python debugging does not show as an option you might to need to install plugins for it.
I’d also recommend setting some breakpoints to be able to control a bit how things show up.
This should make the main gui pop up on your desktop (via x11 forwarding), and there you go!