Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
Install host dependencies.
Import toolchain and SDK.
Create, configure, build and manage apps.
Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench
In the meantime (long ago) I figured out that openOCD can write trace messages into a text file. Append the following lines to the user defined debugger script:
tpiu config internal /path/to/debug.txt uart off 8000000
itm port 0 on