You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When debugging C application inf VSCode I've noticed that step by step debugging(F10) through switch/case "jumps" immediately to the matched case.
OTOH while debugging Python's match/case debugger is stopped on every case statement so you have to spam F10 constantly to get to the proper condition and continue execution.
Anyway to prevent this from happening?
The text was updated successfully, but these errors were encountered:
In C, the values in case labels are all constant expressions, so the only evaluation that needs to take place at runtime is that of the switch expression. In Python, however, every pattern actually needs to be matched against the object at runtime in sequence, as patterns can contain arbitrary expressions in them which aren't evaluated until all previous patterns failed to match. So it's fundamentally a different construct semantically even if it looks similar for simple cases.
Hit F5 every time after match to "jump" to matched switch block
Continue through the block with F10
While it works it's also very inconvenient to put all those breakpoints and disable them as VSCode does not have breakpoint groups
When debugging C application inf VSCode I've noticed that step by step debugging(F10) through
switch/case
"jumps" immediately to the matched case.OTOH while debugging Python's
match/case
debugger is stopped on everycase
statement so you have to spam F10 constantly to get to the proper condition and continue execution.Anyway to prevent this from happening?
The text was updated successfully, but these errors were encountered: