This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-03-04 05:01:28

rpglurker
New Scratcher
Registered: 2013-01-17
Posts: 24

Debugging Red Borders

So is there a log or something that can tell me what is causing a red border on a script?

Offline

 

#2 2013-03-04 08:30:43

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Debugging Red Borders

Usually mathematical impossibilities (dividing by 0, square root of -1, trig functions that return Infinity, impossible logs, etc.) are the main culprits. If you're on Scratch 1.4, turn on Single Stepping; the offending block will turn red.  smile


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#3 2013-03-04 10:53:07

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Debugging Red Borders

Even if you don't turn on single stepping, look for the block that is filled in red.

Also, some more heads up: when blocks are copied between sprites, they might not make sense in the context of the new sprite and turn red (for example, the stage cannot put its pen up, so it errors).

Offline

 

Board footer