@thomas.kilian.0815 I’m not sure I did the right thing. Can you tell me what I did is correct please ?
In my platformio projet, I found inside the .vscode folder a file “launch.json” that I modified to add the configuration you mentioned. So my “launch.json” looks like this :
// AUTOMATICALLY GENERATED FILE. PLEASE DO NOT MODIFY IT MANUALLY
//
// PlatformIO Debugging Solution
//
// Documentation: https://docs.platformio.org/en/latest/plus/debugging.html
// Configuration: https://docs.platformio.org/en/latest/projectconf/sections/env/options/debug/index.html
{
"version": "0.2.0",
"configurations": [
{
"name": "(lldb) Starten",
"type": "cppdbg",
"request": "launch",
"program": "/Users/guillaumecostes/Documents/PlatformIO/Projects/231218-164431-hello-world/.pio/build/native/program",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "lldb"
},
{
"type": "platformio-debug",
"request": "launch",
"name": "PIO Debug",
"executable": "/Users/guillaumecostes/Documents/PlatformIO/Projects/231218-164431-hello-world/.pio/build/native/program",
"projectEnvName": "native",
"toolchainBinDir": "/usr/bin",
"internalConsoleOptions": "openOnSessionStart",
"preLaunchTask": {
"type": "PlatformIO",
"task": "Pre-Debug"
}
},
{
"type": "platformio-debug",
"request": "launch",
"name": "PIO Debug (skip Pre-Debug)",
"executable": "/Users/guillaumecostes/Documents/PlatformIO/Projects/231218-164431-hello-world/.pio/build/native/program",
"projectEnvName": "native",
"toolchainBinDir": "/usr/bin",
"internalConsoleOptions": "openOnSessionStart"
},
{
"type": "platformio-debug",
"request": "launch",
"name": "PIO Debug (without uploading)",
"executable": "/Users/guillaumecostes/Documents/PlatformIO/Projects/231218-164431-hello-world/.pio/build/native/program",
"projectEnvName": "native",
"toolchainBinDir": "/usr/bin",
"internalConsoleOptions": "openOnSessionStart",
"loadMode": "manual"
}
]
}
And I modified my platformio.ini like this :
[env:native]
platform = native
build_flags =
-g
But I still have the same problem when i try to start debugger.