This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Unable to inspect local variables in SES 5.34a

Hi,

I'm running SES 5.34a on a Mac and building a Zephyr bluetooth sample for the nRF5340 DK. NCS version is 1.4.2.

When I breakpoint in a bluetooth stack callback I cannot inspect some local (stack) variables.  The project is in .../ncs/zephyr/samples/bluetooth/MyProject (this is a copy of peripheral_hr that I am modifying).

Here is the breakpoint screen:

The watch window is:

The debug log showing the LOG_INF output is:

In MyProject/prj.conf I have the following configurations set:

and in the build folder ../build_nrf5340dk_nrf5340_cpuappns/zephyr/.config I have this:

The problems I see are:

1. I cannot breakpoint on the assignment statement:

p_func_t goo = handleOpCodeError;

2. Hovering over the goo variable just shows "goo=", hovering over retVal just shows "retVal=". However, the LOG_INF output shows the correct value (so the variables are not being optimised away)

3. In the Watch window, values for goo and retVal are not shown

4. The LOG_INF output shows a different value for 'handleOpCodeError' (0x0000 8bb1) versus the Watch window (0x0000 8bb0)

I would appreciate any assistance on how to get these local variables to be inspectable.

Kind regards,

AC

Parents Reply Children
No Data
Related