You’ll have to do it yourself, Unity doesn’t support Debug on standalone builds as far as I know.
In this case, IO to the rescue!
Debugger.js
import System;
import System.IO;
static function Log (debugMsg : String) {
var path : String = Application.dataPath+"/debugLog.txt";
var sw : StreamWriter = new StreamWriter(path, true);
sw.WriteLine(debugMsg+"\n");
sw.Close();
}
Don’t attach the Debugger.js anywhere, it works just by being at your Project Tab.
All you need to do from now on is use Debugger.Log( ) instead of Debug.Log( ). The debug messages will be sent to the debugLog.txt file in your game’s folder (it will create a new file if none exists).
sure Debug works.
it writes into the log thats created. On windows builds its output.txt in the xxx_data folder, on osx its in ~/Library/Logs/Unity/player.log
alternatively search the board for DebugStreamer for example