Unable to see symbols/variables in function using debugger in Visual Studio Code

rshewan
Posts: 3
Joined: Mon Apr 14, 2025 1:10 pm

Unable to see symbols/variables in function using debugger in Visual Studio Code

Postby rshewan » Mon Apr 14, 2025 2:16 pm

Environment: MacOS | Visual Studio Code | ESP-IDF 5.4.1
Code: ESP-Modbus v2.0.2 | examples/serial_master.c

Example seems to build cleanly.

Image will flash and run. It does not run to completion.

Attempting to debug. Breakpoints are set in app_main(), master_init() and master_operation_func(). Once breakpoint in master_operation_func() is hit the message '__FUNCTION__ = No symbol "__FUNCTION__" in current context.' is seen under the Variables / Local section of the Visual Studio Code debug panel.

The debugger cannot sync across 'C' code and the disassembly. The breakpoint is shown significantly different points in image.

I have tried disabling optimization with no effect.

Any help would be greatly appreciated.

rshewan
Posts: 3
Joined: Mon Apr 14, 2025 1:10 pm

Re: Unable to see symbols/variables in function using debugger in Visual Studio Code

Postby rshewan » Mon Apr 14, 2025 3:35 pm

I have come to learn that I am exceeding the 2 breakpoint limit. Ugh!

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot], Google [Bot], Qwantbot and 2 guests