DebugLog

Monkey Forums/Monkey Programming/DebugLog

rIKmAN(Posted 2013) [#1]
For some reason my DebugLogs have stopped being output to the small window underneath the canvas in HTML5.

I am using Chrome, and they are all being sent to / caught by the Javascript Console in the Developer Tools (F12) within Chrome.

It works great in v69 but I've recently moved to v73b and I guess something has changed behind the scenes in Monkey to cause the issue.

Does anyone know what I can do to get it back the way it was?


therevills(Posted 2013) [#2]
You'll need to edit the modules/monkey/native/lang.js file:

Change:
function debugLog( str ){
	if( window.console!=undefined ) window.console.log( str );
}

To:
function debugLog( str ){
	if( window.console!=undefined ) window.console.log( str );
	print(str);
}

So just basically adding the print command.

Or you could just change your DebugLog commands to Print commands.


rIKmAN(Posted 2013) [#3]
Ahaaaa, thank you mate! :)