Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Debug logging in AGK

Author
Message
gbison
13
Years of Service
User Offline
Joined: 15th Dec 2010
Location: USA
Posted: 2nd Nov 2012 20:59
Hey all,

We are finally getting our feet wet within AppGameKit but have a quick question. I have looked through the API but to no eval, a method for some form of logging or debugging that is possibly output to another window? I noticed that printing gets cleared immediately, so am I going to have to write everything out to file??

Any help would be greatly appreciated!

Thanks

"The greatest trick the devil ever pulled, was to convince the world he didn't exist."
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 2nd Nov 2012 21:10
You can create your own debug to file routine, like this set:


The file "debugLog.txt" will appear in the Documents/AGK/<yourappname>/media directory.

You initialise (create and/or clear) by calling the initDebug function and then write to it with the writeDebug function.

Cheers,
Ancient Lady
AGK Community Tester
gbison
13
Years of Service
User Offline
Joined: 15th Dec 2010
Location: USA
Posted: 2nd Nov 2012 22:00
That's what I had anticipated.

Thanks!

"The greatest trick the devil ever pulled, was to convince the world he didn't exist."

Login to post a reply

Server time is: 2024-11-24 01:30:14
Your offset time is: 2024-11-24 01:30:14