esp-matter
esp-matter copied to clipboard
How to get debugger to work with Visual Studio Code? (CON-1622)
How can I get the debugger to work properly with Visual Studio Code?
When I run my project using the debugger it stops at a temporary breakpoint in app_main.
But, when I set various breakpoints in my code, the debugger does not stop. Stepping manually from the temporary breakpoint does also not work properly. If I step over this statement "nvs_flash_init();", the debugger does not stop on the next statement.
I have selected this OpenOCD Board Configuration:
This is my launch.json file:
{
"version": "0.2.0",
"configurations": [
{
"type": "gdbtarget",
"request": "attach",
"name": "Eclipse CDT GDB Adapter"
},
{
"type": "espidf",
"name": "Launch",
"request": "launch"
}
]
}
What could be the issue?