• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

NetDebugConfig.getDebug( ) Method > NetDebugConfig.getDebug( ) Method

Name

NetDebugConfig.getDebug( ) Method

Synopsis

                     myConnection.getDebugConfig(id).getDebug( )

Returns

A Boolean indicating the current state of debugging in the Flash Remoting application.

Description

The getDebug( ) method returns the current state of debugging in Flash Remoting. Debugging can be on or off and can be set programmatically with the setDebug( ) method. When debugging is on, the NetConnection debugger receives events and logs messages. When debugging is off, the NetConnection debugger is inactive.

The NetDebug.as file must be included in order to use the getDebug( ) method.

Example

The following code shows the basic syntax of the getDebug( ) method:

#include "NetServices.as"
#include "NetDebug.as"

if (connected == null) {
  connected = true;
  NetServices.setDefaultGatewayUrl("http://127.0.0.1/flashservices/gateway");
  var my_conn = NetServices.createGatewayConnection( );
  var my_service = my_conn.getService("com.oreilly.frdg.searchProducts");
  trace(my_conn.getDebugConfig( ).getDebug( ));
}

PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint