Hello,
To output information while app running, I would like to suggest you check the WinJS.log function at
http://msdn.microsoft.com/en-us/library/windows/apps/jj150612.aspx
How to use it, please refer the following sample
function ClickEventHandler(eventInfo) {
WinJS.log && WinJS.log("error message", "sample", "status");
}
var lastError = "";
var lastStatus = "";
WinJS.log = function (message, tag, type) {
var isError = (type === "error");
var isStatus = (type === "status");
if (isError || isStatus) {
var statusDiv = /* @type(HTMLElement) */ document.getElementById("statusMessage");
if (statusDiv) {
statusDiv.innerText = message;
if (isError) {
lastError = message;
statusDiv.style.color = "blue";
} else if (isStatus) {
lastStatus = message;
statusDiv.style.color = "green";
}
}
}
};
Hope this helps, thanks.
Yanping Wang
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.