Skip to content

lldb-dap says global scope with 10k+ variables is not expensive. #139613

Open
@otomn

Description

@otomn

lldb version 20.1.4
dap request

{"command":"scopes","arguments":{"frameId":6815744},"seq":8,"type":"request"}

dap response

{"body":{"scopes":[{"expensive":false,"name":"Locals","namedVariables":7,"presentationHint":"locals","variablesReference":1},{"expensive":false,"name":"Globals","namedVariables":11915,"variablesReference":2},{"expensive":false,"name":"Registers","namedVariables":2,"presentationHint":"registers","variablesReference":3}]},"command":"scopes","request_seq":8,"seq":0,"success":true,"type":"response"}

Expectation:
Globals should definitely be considered as expensive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions