microsoft / microsoft/vscode-cpptools

Expression failed to parse

Open
#9,244 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

debugger more info needed
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Environment
  • OS and version: macOS 12.3.1
  • VS Code: 1.66.2
  • C/C++ extension: ms-vscode.cpptools v1.10.0
  • OS and version of remote machine (if applicable):
  • GDB / LLDB version: lldb-1316.0.9.41
Bug Summary and Steps to Reproduce

Bug Summary:

  • std::vector element can NOT be watched if none of vector elements is used.
  • vector element can be watched if any vector element is used.

Steps to reproduce:

  1. build
  2. F5
  3. Do 'break point'
  4. add watch: eg.: v, v[0]

Screen Shot 2022-04-28 at 00 27 31
Screen Shot 2022-04-28 at 00 28 03

Debugger Configurations
None
Debugger Logs
None
Other Extensions

No response

Additional Information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or entry point is named. Start by reproducing the issue on macOS with LLDB using a std::vector and watch expressions v and v[0], then trace the C/C++ extension's expression handling. Done means vector elements can be watched when no vector element is otherwise used, without an expression-parse failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.