Arduino Leonardo / Debugging

can i debug arduino leonardo in Platformio? I tried, but the operations I wanted on the card did not occur while debugging. Has anyone ever done a debug with Leonardo before?