That’s an old and unused part of the game. For it to run, some other part of the game must have called console.debug. The thing is, it can never happen. There could be an extension that has injected some code, or Chrome might have done something weird. I tested it on Windows Chrome, and it was working on my side.
So, is there a fix for this? I’m sorry, but I don’t think there is. Your best bet is to disable extensions or try the Windows version.