Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Andreychik32 opened this issue Dec 9, 2024 · 0 comments

Comments

@Andreychik32
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant