Restarting debugging fails with "file in use"

When trying to debug an ESP32 Arduino project, restarting debugging using the “restart” button consistently fails with a “file in use” error. See attached screenshot. I have to poke the stop button, then start button to restart a debugging session. And I have to do this constantly because breakpoints only pause execution 1 in 10 times :confused: How do I get past this?

https://www.screencast.com/t/VmeGQZXM

File a feature request in GitHub - platformio/platform-espressif32: Espressif 32: development platform for PlatformIO.

Restarting debugging without error messages is a feature?

Apparently this not implemented if you get that error message? My point of view.

Done!

It’s impossible technically. Have you tried to restart session using “monitor” commands? We use the same technique with other development platforms.