microsoft / microsoft/vscode-cpptools
Counting breakpoints not working
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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