Skip to content

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

@Andreychik32

Description

@Andreychik32

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.

CleanShot.2024-12-09.at.6.20.04.mp4

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions