Use this command to write some text if you debug your app.
app.Debug( "debug text" );
//e.g. show the progress if you load a website function web_OnProgess( progress ) { app.Debug( "progress = " + progress ); }