Open kanflo opened 7 years ago
Same issue here.
Can confirm this is not working, it is treated like a regular breakpoint currently.
Hello, I can confirm this is not working with cpptools 0.29.0, it sets a regular breakpoint:
1: (1067827) <-1215-break-insert -f myFunc.c:10
1: (1067904) ->1215^done,bkpt={number="9",type="breakpoint",disp="keep",enabled="y",addr="0x000000000a6e09c5",func="myFunc",file="/SOURCE/lib/myFunc.c",fullname="/SOURCE/lib/myFunc.c",line="10",thread-groups=["i1"],times="0",original-location="myFunc.c:10"}
1: (1067904) ->(gdb)
1: (1067904) 1215: elapsed time 77
1: (1067904) Send Event AD7BreakpointBoundEvent
Manually calling the command -exec ignore <BREAKPOINT_NUMBER> <HIT_COUNT>
in the debug console after transforms it successfully in a conditional breakpoint.
Just for information, currently the VScode extension https://github.com/WebFreak001/code-debug allows to use the counting breakpoint as we would love to do with vscode-cpptools extension.
Hello, I can confirm this is not working with cpptools 0.29.0, it sets a regular breakpoint:
1: (1067827) <-1215-break-insert -f myFunc.c:10 1: (1067904) ->1215^done,bkpt={number="9",type="breakpoint",disp="keep",enabled="y",addr="0x000000000a6e09c5",func="myFunc",file="/SOURCE/lib/myFunc.c",fullname="/SOURCE/lib/myFunc.c",line="10",thread-groups=["i1"],times="0",original-location="myFunc.c:10"} 1: (1067904) ->(gdb) 1: (1067904) 1215: elapsed time 77 1: (1067904) Send Event AD7BreakpointBoundEvent
Manually calling the command
-exec ignore <BREAKPOINT_NUMBER> <HIT_COUNT>
in the debug console after transforms it successfully in a conditional breakpoint.
This works.
Is this problem something that's going to get fixed?
Confirmed hit points counting still not working in
ms-vscode.cpptools, Version: 1.7.1, Last updated on 10/19/2021, 19:54:55
unrelated, but above version LogPoints and conditional breakpoints are working well.
Using "Hit Count" also doesn't work for lldb
Manually calling the command:
-exec break modify -i <HIT_COUNT> <BREAKPOINT_NUMBER>
in the debug console does work
macOS 12.0.1 ms-vscode.cpptools 1.7.1
This is still an issue on my machine.
Manually calling the command is working.
pop!_OS 22.04 ms-vscode.cpptools 1.10.8
Still not works on v1.14.4.
But I need to find a way to execute such command inside an extension. :(
Windows 11 Version 22H2 (OS Build 22621) MinGW ms-vscode.cpptools 1.14.4
Still an issue October 2023!
Still not working on version 1.84.2. Why this feature--Hit Count can't be supported by gdb debbuger?
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:
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.