Run python script after debug session starts

Hallo Platformio!
I have a setup where openocd is configured to listen on itm ports of an arm microcontroller. I have also a python script that parses itm packages coming from tcl server of openocd. I would like to start this script after the actual debug session starts. Is it possible?

Not aware of such a feature, would likely require code modifications in GitHub - platformio/platformio-core: A professional collaborative platform for embedded development or the platform you’re working on (like GitHub - platformio/platform-ststm32: ST STM32: development platform for PlatformIO); you can ask the devs there.

In extra_scripts pre-debug would be nice I guess