Code: Select all
Repeat
count+1
Debug count
Until count=1000
Thanks
Code: Select all
Repeat
count+1
Debug count
Until count=1000
You can use setTimeout() to avoid freezing the debug output:dev.to wrote:Javascript is a single threaded language. This means it has one call stack and one memory heap. As expected, it executes code in order and must finish executing a piece code before moving onto the next.
It's synchronous, but at times that can be harmful. For example, if a function takes awhile to execute or has to wait on something, it freezes everything up in the meanwhile.
Code: Select all
Procedure DebugX(DebugOutput)
! setTimeout(function() {
Debug(DebugOutput)
! }, 0);
EndProcedure
Repeat
count + 1
DebugX(count)
Until count = 1000