a debug function that prints messages to a separate debug window in the game
DebOut "section A\n\tstate: " s_state "\tframecounter: " l_frame_counterwould result in
state: 23 framecounter: 543</pre>
Similar to cout you state strings and string variables which are all concatenaded and written to the debug window. Having \t and \n as format characters would be very useful too. To see the debug messages the user has to give a paramter to openmw[-launcher] or activate a checkbox in the launcher which is not remembered for the next start. It should be possible to turn the "debug message window" on and off from the console.
this ^ is the short version of https://forum.openmw.org/viewtopic.php?f=2&t=3109
(RM-2945 from redmine: created on 2015-09-27 by Who Knows, )