[ISSUE] SOS Debugging Tinker on Argon (MacOS). vscode/Particle workbench

Whelp, that was my problem as well (although I’m using Qt Creator attaching to a remote openocd server so it manifested with a slightly different error message. It’s all GDB, anyhoo…) Thanks for getting the word out!

[ISSUE] Particle: Flash for debug fails and puts device in error state. Also related to Failed to launch OpenOCD GDB. Server: Timeout drops a hint about why this might be. @m_m, is there anything more you could add to describe the issue? I’m developing asynchronous mesh applications and having to choose between serial output debugging with mesh and introspection via hardware debugger is definitely painful! It would be nice if there are certain things we could do (disable/reenable interrupts, for instance?) which could allow for a more robust and predictable debugging experience.

I’m guessing the lengthy pattern of Mesh.off(); BLE.off(); // My code here; BLE.on(); Mesh.on(); will protect from a timing fault, and if that’s the best solution then it is what it is.