Simulator do not show code errors

For some reason simulator stop to show any errors anywhere except Main.
It’s look like simulator just stops compiling where an error is in the code, and just runs game with whatever functions it had loaded before the error occurs. I don’t know its strange - sometimes it’s even loads runtime listeners and you can play the game with errors.

I don’t remember when it started (maybe a week ago or so) and what might be the trigger, coz I was working on the project and don’t really had time to report to the forum.

I tried 3609 and 3611 builds and also 3593 but still got no errors, so i guess it’s some kind of local preferences thing? But “Show Runtime errors” is checked in the simulator preferences.

Is this about syntax errors and runtime errors, or just runtime errors? Also, are you using a custom error handler function?

I don’t see any errors anywhere except main.lua. Main catches every error.

No

Are you saying that if you were add a syntax error by including the line:

let's crash this project

Anywhere other than your main.lua, then you wouldn’t receive an error message?

Alright i just found it.

It turns out that there is global var debug, that somehow guilty.
Here is a video https://youtu.be/jnr0iSDW5P8

I checked docs, but i can’t find any references to this thing

debug is a global Lua library, see: https://www.lua.org/pil/23.html

2 Likes

oh, yes, my bad

Thank you, kind sir :upside_down_face: