cortex-debug icon indicating copy to clipboard operation
cortex-debug copied to clipboard

Live Watch: array of structs elements are sometimes visible only if clicked on multiple times

Open Andreychik32 opened this issue 11 months ago • 0 comments

Describe the bug I've stumbled upon weird bug while debugging my STM32 project. Whenever I want to view struct elements in an array (or struct in a struct - it really doesn't matter), I encounter this behavior.

https://github.com/user-attachments/assets/1517402e-e37d-4ca9-9c4b-6134acb21157

To Reproduce Steps to reproduce the behavior:

  1. Ensure an array of structs is present in your code.
  2. Start debug session.
  3. Add your array into live watch.
  4. Try to see nested struct values.
  5. See issue occurring sometimes.

Expected behavior

Variables should reliably open.

Environment:

  • Cortex-Debug Version: 1.21.1 (latest from VSCode extension store.
  • OS: MacOS 15.1.1
  • GDB Version: GNU gdb (Arm GNU Toolchain 13.3.Rel1 (Build arm-13.24)) 14.2.90.20240526-git
  • Compiler Toolchain Version: gcc version 13.3.1 20240614 (Arm GNU Toolchain 13.3.Rel1 (Build arm-13.24))

launch.json is as follows:

        {
            "name": "Attach CM7 - ST-Link",
            "cwd": "${workspaceFolder}",
            "type": "cortex-debug",
            "executable": "${command:STM32VSCodeExtension.dualCoreCM7Target}",
            "request": "attach", 
            "servertype": "stlink",
            "device": "STM32H747BITx",
            "interface": "swd",
            "serialNumber": "",
            "svdFile": "${config:STM32VSCodeExtension.cubeCLT.path}/STMicroelectronics_CMSIS_SVD/STM32H747_CM7.svd",
            "stm32cubeprogrammer":"${config:STM32VSCodeExtension.cubeCLT.path}/STM32CubeProgrammer/bin",
            "v1": false,
            "serverArgs": [
                "-m","0",
                "-t", "-s"
            ],
        },

Text from Debug Console debug_console.log

Additional context The video and log are from different debug sessions.

Andreychik32 avatar Dec 09 '24 16:12 Andreychik32