Unity Console won't display Compiler Errors

Hello, I’m afraid I’m having an issue. I don’t know if it’s a Unity setting (version 2019.4.2f1) or trouble with Visual Studio (using 2017 15.9.31).

When I first started using Unity, whenever I had a Compiler Error in a script that would prevent Unity’s playmode from activating, Unity would display the error in the console. However, now, there is absolutely no such error displaying. Even if it’s as simple as missing a semi-colon at the end of a single line of code, all Unity does is refuse to enter playmode and give a big pop-up message that says:

“All compiler errors have to be fixed before you can enter playmode!”

So I have no console entry to tell me what script or line number to even begin searching for the error.

I was away from Unity for quite some time, so when I came back, I had to reinstall Unity and Visual Studio. I had a terrible problem getting them to work together (why I’m using VS17 instead of 19), and had to add then delete several VS components just to get the solutions and intellisense working properly.

Also, interestingly, I have an issue where scripts will run partway through the code until it hits an error (I’m guessing), and it just stops running the script at that point, but there’s absolutely no warning or error listed anywhere that tells me it stopped. I’ve actually been having to use debug.logs throughout a script just to see at which point it stops. I don’t remember ever having such an issue before.

Any help would be greatly appreciated! Thank you, and God bless! :slight_smile:

Did you happen to toggle off errors in your console? There are separate toggles for normal logs, warnings, and errors.

2 Likes

My goodness, I do believe that was the problem! When I installed Unity, it must have remembered my layout, so the console tab was rather small, and didn’t display the three toggles. I looked through the menus and drop-down box, and made sure they were all functional, but the toggle was turned off!!!

Thank you so very much! :smiley:
May God bless you!!!