Page MenuHomeFeedback Tracker

Debug console not printing errors
Closed, ResolvedPublic

Description

Debug console not printing error on screen in some cases (at least for me on current todays devbranch 1.77.142777)

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce

Paste this into debug console on an empty map:

[slick1,slick2,slick3,slick4,slick5] select {not isNil {_x}}

Notice no error popping up.

Now spawn the same code:

nul = [] spawn {[slick1,slick2,slick3,slick4,slick5] select {not isNil {_x}};};

Error pops up.
Is this intended?

Event Timeline

dedmen added a subscriber: dedmen.Sep 11 2017, 12:14 PM

This is intended. Debug console code runs in unscheduled. And unscheduled doesn't care about Nil variables.
Actually it is a specialty of scheduled code that it errors on Nil variables. So yes. This is intended. This is not a bug. This issue can be closed.

LouMontana closed this task as Resolved.Nov 6 2020, 2:42 PM