How to reveal memory symbols from code

nRF Connect for VS Code

tags
nRF Connect for VS Code

While you can use the Show Symbol in File or Reveal Symbol in File in the Memory Explorer to go to the location of the a symbol in the code file, you can also do the opposite and locate a memory symbol from the code file:

  1. Open the file containing the code that you are debugging and locate the symbol you want to find in memory.
  2. Right-click on the symbol to open the context menu.
  3. Click Reveal Symbol in Memory Explorer.

The extension highlights the chosen symbol in the Memory Explorer. If the symbol is not located in the symbol list, a notification appears that the symbol is not included in the compiled hex file.