microsoft / microsoft/vscode-cpptools

Counting breakpoints not working

Open
#714 12 comments 27 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

The cpptools extension does not add the gdb ignore command for counting breakpoints:

Right click a line and select "Add Conditional Breakpoint". Select "Hit Count", enter a value, press enter and the log says:

1: (853124) <-1099-break-insert -f main.c:34
1: (853127) ->1099^done,bkpt={number="13",type="breakpoint",disp="keep",enabled="y",addr="0x08000156",func="main",file="main.c",fullname="/home/johan/github/arm/pill/main.c",line="34",thread-groups=["i1"],times="0",original-location="main.c:34"}
1: (853127) ->(gdb)
1: (853127) 1099: elapsed time 2

The breakpoint was added but not set as counting (note "13" above is the number of the bp.). A manual -exec ignore 13 10 does the trick.

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

Reproduce the VS Code C/C++ breakpoint workflow using “Add Conditional Breakpoint” and “Hit Count,” then compare its log with the manual -exec ignore 13 10 command shown in the issue. Done means the extension sends the counting command and the resulting breakpoint enforces the requested hit count.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.