pjinturin
unread,Mar 6, 2025, 1:44:12 PMMar 6Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PyScripter
I think there's something strange going on with the new breakpoint count feature. Consider the following code:
def fn(x):
print(x)
for j in range(1000):
pass
fn(j)
If you put a breakpoint (breakpoint no.1) with an ignore count of 100 on "fn(j)" and run the debugger, execution stops when j=100. But if you then add an unconditional breakpoint (breakpoint no.2) on "pass" and continue execution the second breakpoint is ignored and it stops on breakpoint 1 when j=201. If I then press the F8 button (when I would expect execution to step to the for statement) it again stops on breakpoint 1, ignoring breakpoint 2, but this time j=202 (so ignoring the count condition). The only one of the debugger stepping functions that works is F7, which enters fn() and stops on the print statement. After this the debugger behaviour returns to what I would expect, until the next time that the breakpoint count is hit, when the odd behaviour starts again.
Am I missing something? Is this expected behaviour?
Thanks
Piero