How to stop a skript like does

Skip to first unread message

Björn T

Feb 3, 2019, 10:01:02 AM2/3/19
to Skulpt
First of all: Thank you for your great job.

I have made a skulpt project for my students. When somebody made an infinite loop, the browser crashes and the code is gone. That is very frustrating for that student. I want to add a stop button like this one on ( I tried to understand their code, but got stucked.

I followed the instructions on to getting started with skulpt.

Any ideas?

By the way: The example on the site about adding a module got a little bug. The line
return myfact(a);
should be
return myfact(a.v);

Björn T

Feb 4, 2019, 2:25:49 PM2/4/19
to Skulpt
i = 0
while True:
= i + 1

This is an example, that crashs the browser. I think I have to use suspensions but didn't get the point where to start.
The scipt starts printing after i stoped the browser, but it should printing all the time.

Reply all
Reply to author
0 new messages