Safe Execution¶
Keep a mistake on the component, once. When a method throws, ZenCoder pauses that script and leaves the message where you are already looking. The Console records the error once, then stays quiet.
This is on by default.
ZenCoder → Preferences → General → Safe Execution
1.2.0 · Shoshin
Introduced in the v1.2.0 release.
What you see¶
Press Run. The first time Update throws, the script pauses. The status bar reads:
Update paused this script. Object reference not set to an instance of an object.
The light on the component turns red, and the Run button is ready again. In the Control Center that row shows Paused. The Console records the error once, including the stack, and then stays quiet.
The same thing happens for Start, a collision method, or a routine you started with StartCoroutine. The first failure wins. Later frames stay quiet.
Compilation errors are separate. Those still highlight the line and appear in the status bar, as described on the ZenCoder component.
Fix it and run again¶
The message stays on the component until you run the script again. Change the code, press Run, and ZenCoder starts fresh. A successful run clears the message.
Pressing Stop, or turning the component off, also ends the run. The message remains until the next Run, so you can still read what happened.
Turn it off¶
ZenCoder → Preferences → General → Safe Execution
Leave it on while you experiment. Turn it off when you want the error to reach the Console on every frame, the way an ordinary component does.