esp-matter icon indicating copy to clipboard operation
esp-matter copied to clipboard

How to get debugger to work with Visual Studio Code? (CON-1622)

Open olavt opened this issue 11 months ago • 5 comments

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:

Image

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?

olavt avatar Apr 01 '25 15:04 olavt