Skip to content
Deltachaos edited this page Mar 20, 2011 · 5 revisions

App.debug

This handles the debuging Output. All things going to the Firebug Console (if exists), Adobe AIR Introspector Console (if exists) and the DebuginConsole.

Note: Messages only get displayed if App.config.debug is above 0

Examples

Debug a message to the DebugConsole

	App.debug.log('Hello DebugConsole!');

Debug a message to the DebugConsole into a Tab

This debugs the message to the Tab 'MyTabName' in the DebugConsole.

	App.debug.log('Hello DebugConsole Tab!', 'MyTabName');

Debug objects and arrays ==

Objects and Arrays get automatically encoded to Json.

	App.debug.log({
		foo: baa
	});

Debug a message using the shortcut 'debug'

	debug('Hey, this is easy', 'MyTab');