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

NetDebugConfig.setDebug( ) Method > NetDebugConfig.setDebug( ) Method

Name

NetDebugConfig.setDebug( ) Method

Synopsis

                     myConnection.getDebugConfig( ).setDebug(setting)

Arguments

setting

true or false value to turn debugging on or off.

Description

The setDebug( ) method is used to turn debugging on or off programmatically. This can be useful if you are testing an application and need a way to turn debugging on only at certain times, such as when a problem occurs. This is a good way to limit logging so that errors aren’t lost in a flood of status messages, although you can turn debugging on and off for individual events using the properties in Table 15-2.

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


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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