Wednesday, July 18, 2007 at 2:31 PM
You can find gadget debug consoles in two places: inside the Gadget Designer (sdk\api\tools\designer_en.exe) and as a standalone application (sdk\api\tools\gdpconsole.exe). Using a debug console will make your life much easier, compared to strictly using view.alert. To send output to the debug console, use the debug object. For example:
function view_onOpen() {Have a tip you'd like to share? Send it to gd-developer AT google DOT com.
debug.trace("starting...");
}
5 comments:
Yes.
debug.trace is very helpful.
It is much better than using alert(..) to debug.
yeah bijoy ... especially in a loop :)
i always keep my console running while developing ... i also like debug.error, which shows up in red
That thingie is pretty cool. I wasn't using it until this post (which was the 'last straw' :) everyone was recommending me the gdpconsole :D )
Yeah, it is a nice tool.
Especially, because of the fact that you need not run gdpconsole ... you can see the output directly from designer.
Yeah!! Really helpful tool to do experiments.. ;) in case of having infinite loops or so.. :D
Post a Comment