repeat
print(1)
if true then
print(2)
break
end
print(3)
until false
Set a breakpoint on line 1, run and press F10 sometimes:
- Although the breakpoint is on line 1 (repeat), it is stopping on line 2 (print)
- Pressing F10, it skips line 3 (if) and stops at line 4 (print)
- F10 again does not go to line 5 (break), and jumps to line 8 (until)
1 Like
It does not need to stop at if true then
, but it will stop at a function call.
Video: https://streamable.com/y9kps8
repeat
print(1)
if true then
print(2)
break
end
print(3)
until false
repeat
print(1)
if math.min(1,2) then -- (random function call)
print(2)
break
end
print(3)
until false
This looks like intended behavior, not a bug.
The worst part is not stopping on the ‘break’
Thanks for the report! We’ll follow up when we have an update for you.
2 Likes