Whenever I attempt to run the debugger:
The debug toolbar is displayed with reset and stop options enabled only.
The project builds in debug mode, compiles links etc and shows [SUCCESS] Took 12.20 seconds
The debug toolbar is no longer displayed.
Nothing else happens. No breakpoints hit, no messages, nothing.
Some other clues:
For the commands build, upload etc. a toast message is displayed:
There are task errors. See the output for details.
The OUTPUT tab of the Terminal shows the message:
Error: The PlatformIO task detection didn’t contribute a task for the following configuration:
{
“type”: “PlatformIO”,
“task”: “Pre-Debug”,
“problemMatcher”: [
“$platformio”
],
“label”: “PlatformIO: Build in debug mode”
}
The task will be ignored.
The DEBUG CONSOLE tab of the Terminal always shows the message:
Could not start debugger process > Error: spawn platformio ENOENT
I guessed that not being able to execute pio in the CLI is a conflicting extension messing with the PATH environment variable or Python environment. Usually a sign of the Anaconda extension, but you don’t have that installed.
I uninstalled all extensions except:
ms-vscode.cpptools
ms-vscode.cpptools-extension-pack
platformio.platformio-ide
I still get the toast message and the error in the OUTPUT tab, but the DEBUG CONSOLE tab now has some activity. I’ve had a few false starts, just need more practice.