NetDebugConfig.getDebug( )

NetDebugConfig.getDebug( ) MethodFlash 6

returns the current state of NetConnection debugging
myConnection.getDebugConfig(id).getDebug( )


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


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 file must be included in order to use the getDebug( ) method.


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

#include ""
#include ""

if (connected == null) {
  connected = true;
  var my_conn = NetServices.createGatewayConnection( );
  var my_service = my_conn.getService("com.oreilly.frdg.searchProducts");
  trace(my_conn.getDebugConfig( ).getDebug( ));

The trace( ) statement displays the current state of debugging in this particular application, which should be on because it has not been turned off in the code.


At the time of this writing, this method returns `undefined' in all cases. It has been removed from Macromedia's online documentation at and should be considered unsupported until Macromedia updates their documentation.

See Also

The NetDebug object, Table 15-2 under the NetDebugConfig object, NetDebugConfig.setDebug( ); Chapter 13

    Part III: Advanced Flash Remoting