Configuring the AIR Introspector

You can configure the console by setting properties of the global AIRIntrospectorConfig variable. For example, the following JavaScript code configures the AIR Introspector to wrap columns at 100 characters:

 var AIRIntrospectorConfig = new Object(); 
 AIRIntrospectorConfig.wrapColumns = 100;

Be sure to set the properties of the AIRIntrospectorConfig variable before loading the AIRIntrospector.js file (via a script tag).

There are eight properties of the AIRIntrospectorConfig variable:

Property

Default value

Description

closeIntrospectorOnExit

true

Sets the Inspector window to close when all other windows of the application are closed.

debuggerKey

123 (the F12 key)

The key code for the keyboard shortcut to show and hide the AIR Introspector window.

debugRuntimeObjects

true

Sets the Introspector to expand runtime objects in addition to objects defined in JavaScript.

flashTabLabels

true

Sets the Console and XMLHttpRequest tabs to flash, indicating when a change occurs in them (for example, when text is logged in these tabs).

introspectorKey

122 (the F11 key)

The key code for the keyboard shortcut to open the Inspect panel.

showTimestamp

true

Sets the Console tab to display timestamps at the beginning of each line.

showSender

true

Sets the Console tab to display information on the object sending the message at the beginning of each line.

wrapColumns

2000

The number of columns at which source files are wrapped.

Adobe logo

Sign in to your account