First of all, I am new to VSCode and PlatformIO.
I am trying to display the disassembled and assembly code of a tiny bit of Arduino code in VSCode, but everytime I run the debugger an error shows:
“Failed to launch GDB: .pioinit:13: Error in sourced command file: :3333: System tried to join a drive to a directory on a joined drive. (from interpreter-exec console “source .pioinit”)”
It tells me to open launch.json, which I do, but I cannot see anything in there causing the error:
{
"version": "0.2.0",
"configurations": [
{
"type": "platformio-debug",
"request": "launch",
"name": "PIO Debug",
"executable": "c:/Users/username/Documents/PlatformIO/Projects/program1/.pio/build/uno/firmware.elf",
"projectEnvName": "uno",
"toolchainBinDir": "C:/Users/username/.platformio/packages/toolchain-atmelavr/bin",
"internalConsoleOptions": "openOnSessionStart",
"preLaunchTask": {
"type": "PlatformIO",
"task": "Pre-Debug"
}
},
{
"type": "platformio-debug",
"request": "launch",
"name": "PIO Debug (skip Pre-Debug)",
"executable": "c:/Users/username/Documents/PlatformIO/Projects/program1/.pio/build/uno/firmware.elf",
"projectEnvName": "uno",
"toolchainBinDir": "C:/Users/username/.platformio/packages/toolchain-atmelavr/bin",
"internalConsoleOptions": "openOnSessionStart"
},
{
"type": "platformio-debug",
"request": "launch",
"name": "PIO Debug (without uploading)",
"executable": "c:/Users/username/Documents/PlatformIO/Projects/program1/.pio/build/uno/firmware.elf",
"projectEnvName": "uno",
"toolchainBinDir": "C:/Users/username/.platformio/packages/toolchain-atmelavr/bin",
"internalConsoleOptions": "openOnSessionStart",
"loadMode": "manual"
}
]
}