How do I debug my gadget?

24 Apr 2007 10:34 sidebar-gadgets

As far as I can tell, you’ll have to go “old school”, and do the equivalent of adding lots of printf statements to your code. This should help:

function outputDebug(message) {
    var fso = new ActiveXObject("Scripting.FileSystemObject");
    var f = fso.OpenTextFile("C:\\Temp\\Gadget.log", 8, true);

Update: I figured out how to use Visual Studio to debug sidebar gadgets.