Logging or warning or output for debug goals

For debug goals I need to output some information. Usually in java script I use the function 'alert'.

Do I have a possibility to write an information to status bar or to message box or to some other visible place?

[229 byte] By [Polina] at [2008-2-7]
# 1

iHD supports a "Diagnostics" object that lets you output trace messages. In theory you can go to a file, a network machine, or a debugger, but I *think* that iHDSim only supports file logging. Something like this will work:

Diagnostics.listeners.add("file");
Diagnostics.trace.writeLine("Here is a message", "Message Category", intMessagePriority);

// eventually make sure all output is written
Diagnosticis.trace.flush();

Of course, the problem here is that you can't read the output file until your app finishes, so it's not very good for interactive use. In that case, it's easiest just to have an <input> in your app that you log debug messages to -- something like this:

<div id="debug_container" style:position="absolute" style:y="980px" style:height="100px" style:width="1920px">
<
input id="debug" state:value="[Debug messages go here...]" mode="display" style:navIndex="none"
style:font="file:///dvddisc/ADV_OBJ/font.ttf" style:fontSize="small" style:color="white" style:backgroundColor="black"
/>
</
div>

And then in your script...

function debug(msg)
{
document.debug.state.value = String(msg);
}

PeterTorr-MSFT at 2007-8-30 > top of Msdn Tech,Audio and Video Development,HD DVD Interactivity Authoring...
# 2

The debugger option in Diagnostics should send the logging to an attached Script debugger, so long as you start iHDSim with the "-debug" option. (Replace "file" with "debugger" in Peter's example).

AndyPennellMSFT at 2007-8-30 > top of Msdn Tech,Audio and Video Development,HD DVD Interactivity Authoring...