Skip to content

codelldb with cpp can't access element in an array #1347

@vladisaev12

Description

@vladisaev12

OS: Ubuntu Server 24.04
VSCode version: 1.105.1
CodeLLDB version: 1.11.8
Compiler: clang++-18/lld++-18
Debuggee: Elf64/x86_64-linux-gnu exec

Reproduction steps:

  1. Make a simple cpp program that makes a std::array.
  2. Add a breakpoint anywhere after the initialization of the array.
  3. Add any element of the array to the watch list.

Expected:
Shows the value of the element.
Actually:
Errors out with a IndexError.

Details Is a crash, but the crash seems intentional. Logs:

LLDB.log

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