Debugging with STLink

i am trying to see debug logs of the patch.init module with built in Serial monitor in VSCode but i do not see any logs. i have gone through most of the present discussions on this forum around debugging and have tried all of the suggestions but with no luck on seeing any output. i am able to flash my patches properly but can’t see any logs in the monitor. any suggestions on what i could be missing in configuration?

Try patch.StartLog(true).
This waits until USB terminal is connected before continuing.

Note: the STLINK is not used for serial monitoring, so you’ll need two USB cables: one for STLINK to upload and debug, and the other for serial Log output.

i was using semihosting to see debug logs through ST Link but that didn’t work

thanks! i’ll get another USB for the serial output

It’s never been clear to me how to get semihosting to work. It’s a nice idea, though.

this thread here discusses how to use semihosting but it didn’t work for me
you can try and see if you can make it work