How do I debug my gadget?

2007-04-24 10:34:09 +0000

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.