Ask coding questions

← Back to all posts
Displaying Program State on Abort
iamnotachuckste

Is there a simple way to have a program print important variables (e.g. progress of a search) upon clicking Stop?

Voters
iamnotachuckste
Comments
hotnewtop
Vandesm14

If you are talking specifically on Repl.it, then no, there is no current way to do so.

But for JS with HTML, you can use onbeforeunload