Hello PlatformIO-Gurus,
I am currently developing a variety of Projects on an STM32 (Bluepill) and an ESP32. I have Hardware debuggers for both (ST-Link V2 Clone, Olimex ARM-USB-OCD-H), which have already saved me from going insane multiple times.
I currently am trying to hunt down a bug that is hard to reproduce, i.e., occurs rarely. With such a rare bug, chances are high that it occurs when I’m not running with the Debugger active. When I notice the bug and then start debugging, the chip is reset and thus all the info I was looking for is gone.
I know that for desktop development, e.g., using Visual Studio 20something, you can attach to an already running executable. However, in the PlatformIO IDE I have not seen any such option to attach my debugger to the embedded target without resetting the embedded target.
Does such an option exist? If it does not exist, is there a workaround I can take to make the PlatformIO attach a debug session to the target? If it’s not possible with the PlatformIO IDE, is it possible with another IDE or non-IDE-Tool(chain)?
Regards
Damian