-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Playground breakpoints: removal of last breakpoint leads to spurious "Run" action #1434
Comments
This bug is still there. Just tried. Here is the program: |
This bug is still there. https://share.sourceacademy.nus.edu.sg/5ya5k The bug shows up in Source §3 but also in Source §1. |
When the number of breakpoints goes from 1 to 0, line 763 is run which clears the REPL output: frontend/src/pages/playground/Playground.tsx Lines 744 to 770 in 5391c8a
The reason this is done is because Whereas without breakpoints, the As such, we are forced to clear the REPL output because if the stepper's |
The stepper's use of breakpoints is quite lame right now: It switches to the stepper when a breakpoint is set, but it doesn't do anything with the breakpoints. It seems like the use of breakpoints by stepper wasn't well designed. Would it be a lot of trouble removing breakpoints from the stepper entirely? The loss would be minimal. Then, once we have a clear idea how to make use of breakpoints in the stepper, we can revisit this, hopefully with a better solution. |
It seems that the refactoring might not be as simple as removing breakpoints from the stepper entirely since the |
Here is the sequence. Notice the missing 4 in the last screen shot: Removing the last breakpoint triggered a "Run".
The text was updated successfully, but these errors were encountered: