Rapid stepping causes error
danmoseley opened this issue · comments
If you step fast (eg hold down F10) our state gets out of sync with the browser. You will quickly get dialogs like these.
" Error from debuggee: Can only perform operation while paused."
"Error from debuggee: Internal error"
Need to update code to either not make invalid requests that trigger this, or recover without a bad state or a dialog
It looks like we sometimes issue two step commands on a single click (that's why there's a timer to attempt to prevent this). Perhaps it's so fast it's being issued before the last step returned. Possible fixes might be:
(a) wait for the last step to complete; or,
(b) a more complete fix, find a way using sublime's events to get a mouse up, so we don't issue two commands from one click. Possibly this suggests how.
Probably we need both.
Also worth changing the error dialog to just a "print" if it's usually continuable.
This error is now just printing to console so it has little or no consequence.