You can create your own debug to file routine, like this set:
function writeDebug(text$)
// open in append mode
debugFile=openToWrite("debugLog.txt",1)
// output the string
writeLine(debugFile,text$)
// close it to force output
closefile(debugFile)
endfunction
function initDebug(game AS string)
// open and clear the file
debugFile=openToWrite("debugLog.txt",0)
// close it to force output
closefile(debugFile)
// add some info
writeDebug("================================================================================")
writeDebug("Game: "+game)
writeDebug("Platform: "+GetDeviceName())
writeDebug("================================================================================")
endfunction
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