JTAG debuging in platformio

Hello there,
I really have troubles to debug cellcube software using a J-Link or ST-LINK adapter in PlatformIO. Any hints in this direction?
Thanks, Edi

I think it would help if you describe what you tried and how it failed.