How to collect logs for devices that don't work as expected

I have VirtualHere set up on a Raspberry Pi to act as a hub to host various microprocessor development boards and debuggers for myself and my colleagues to use. I'm currently testing with OSX as my client. 

I've found that some boards work fine, but a couple don't and hang during certain operations. How best can I collect debug logs from VirtualHere to share here? The basic logging (via journalctl) doesn't show me anything relevant that I can see — just that the device binds to my client. 

Here are the boards that don't work:

https://www.raspberrypi.com/products/debug-probe/ (programming via https://openocd.org/)

https://www.espressif.com/en/dev-board/esp32-c3-devkit-rust-1-en

I'm able to claim them on my client and begin programming operations just fine. However, both hang at various points in the programming process and I suspect they are doing weird or non-standard things with the USB stack during the process.

#2

The pico ocd works fine via virtualhere, i used it myself for a long time to develop some hardware.

Are you connected via wifi or via ethernet between the pi and the network? 

If it just stops randomly its almost always a latency issue and ethernet is mandatory. Also it wont work over the internet, the latency must be low.


Regarding the ESPS3, i tried that also and actually that one does have a race condition. It waits a few strict number of ms between flash commands and that isnt compatible with virtualhere. Not sure if expressif can do a workaround or not.