Program and debug XIAO without usb

I have a project that is connecting a playstation controller to the usb port so I am unable to debug through the usb. How would I program and debug it?

The Xiao has SWD for debugging, and you can even use another Xiao as debugger! See The $5 programmer-debugger.