frontend icon indicating copy to clipboard operation
frontend copied to clipboard

Env Viz: Automatically clear removed lines' breakpoints [Enhancement]

Open Cloud7050 opened this issue 3 years ago • 0 comments

Currently, if a line stops existing due to being removed (eg from deleting ending lines of a program or pasting in a shorter program), but had a breakpoint, the breakpoint no longer shows up but is still remembered. Trying to run the program with such lingering breakpoints causes the following hint and error:

Hint: Misplaced breakpoint at line x. Line x: Missing semicolon at the end of statement

The error may be from trying to evaluate a blank line.

Ways to get the program to run include adding more (blank) lines to the program to reach that breakpoint's line, such that its line now exists again and the breakpoint shows, to click it away, then deleting those added lines. Or, saving then refreshing the page. Therefore, it may be nice/less annoying to have removed lines' breakpoints get automatically cleared.

Cloud7050 avatar Oct 16 '21 01:10 Cloud7050