Howto: Print debug info to console?

I couldn't find it on the forums, on Google and not in the MV JS documentation.

I know I can use alert() but I'd rather use something that doesn't interfere with the game itself.

Also, is there a buildin option to check if they game is in development mode or release mode? So I can say something like:

if (!RELEASE) { do some debug stuff here };
How about console.log()?
Thanks.

Original thread: https://forums.rpgmakerweb.com/threads/howto-print-debug-info-to-console.48672/