First time poster. I’m not too familiar with platformIO yet.
I’m trying to setup CLion IDE to do building and debugging of my Arduino/ESP8266 projects. The PlatformIO instructions and community comments have got me to the point where Building and Uploading works.
I think I have a memory corruption issue causing an exception that can’t easily be debugged using Serial prints. There is a CLion configuration called “PlatformIO Debug”, but when I try to run this I get an instant error “Debugger process finished with exit code 1”.
Can anyone offer any advice on how I can get this working please? Ideally, I’d like to be able to break and step through the code.
Thanks for the very quick response Max! I’ll investigate your suggestions and reply here with the results.
I did manage to decode the stacktrace using a plugin tool for Arduino IDE, but as is often the case with memory corruption, you find where it was noticed and not where it occurred. Good call on using static code analysis tools. Is there a way I can run it on the command line, or as part of a standard build in CLion? I tried updating the config but didn’t see anything different in the build output. I would guess it needs to be a specific build? I’m not keen on learning another IDE (VSCode) just for this, but if there’s no other option…