What happened to DebugLog?!

Monkey Forums/Monkey Programming/What happened to DebugLog?!

ElectricBoogaloo(Posted 2013) [#1]
I've recently realised that "Print" is taking the place of "DebugLog", and am having to slowly but surely train myself to use Print instead.
Ever since Blitz2D I've been using DebugLog to do exactly what the command is there for!!

Monkey used to be happy doing DebugLog, but something's changed lately.
HTML5 target, in particular, seems to now completely ignore DebugLog, and instead prefer to Print.

Is there any particular reason for this switch?!
Seems a bit odd.


rIKmAN(Posted 2013) [#2]
I had the exact same issue a while back - I am also a DebugLoggger :)

http://www.monkeycoder.co.nz/Community/posts.php?topic=5764#65312


EdzUp(Posted 2013) [#3]
Why not have

function DebugLog( error:string )
   Print error
End


put it somewhere in ya code and there ya go :)


ElectricBoogaloo(Posted 2013) [#4]
Yeah, or just a quick "Ctrl+F : DebugLog : Print" does the job.

I was more interested to know why the change, as opposed to ways to fix it.
Seems a strange thing to decide to tweak, given the decades of use that DebugLog's had!


Jesse(Posted 2013) [#5]
Isn't DebugLog ignored in release mode? So if that's the case then Eds solution is not really the solution.


EdzUp(Posted 2013) [#6]
Iirc all print command are ignored so it would just be ignored anyways :)


Jesse(Posted 2013) [#7]
I guess you are right.