davidedc / Algebrite

Computer Algebra System in Javascript (Typescript)
http://algebrite.org
MIT License
966 stars 59 forks source link

Algebrite pauses debugger #96

Closed Mathmagician8191 closed 5 years ago

Mathmagician8191 commented 5 years ago

Algebrite occasionally goes into a state where Chrome says: "Paused in debugger" The following code seems to be responsible, starting at line 24161 in algebrite.bundle-for-browser.js:

check_stack = function() {
    if (tos !== 0) {
      debugger;
      stop("stack error");
    }
    if (frame !== TOS) {
      debugger; //This line triggers
      stop("frame error");
    }

check_stack is called in line 24724 Browser: Chrome 76.0.3809.132 (64-bit) OS: Windows 10

davidedc commented 5 years ago

Hi - yes this is intended behaviour in case there is a stack or frame error.

Closing for the time being, while the command or program causing this is added to the issue.

Feel free to re-open if you get around to that.