Macromedia flex builder-using flex builder User Manual

Page of 158
Testing and debugging Flex files
93
To filter out events:
Click the Filter Settings button in the panel’s sidebar and deselect event types from the pop-up 
menu.
The types of events that you deselected are no longer displayed in the panel. To view them 
again, select them in the Filter Settings pop-up menu.
To clear all the event data in the panel:
Click the Clear Log Data button in the panel’s sidebar.
Using trace statements with the Network Monitor
You can insert trace statements in your ActionScript code and use the Network Monitor to track 
them at runtime.
The syntax for Network Monitor trace statements is as follows:
NetworkDebugger.NetworkMonitor.trace("string");
or
NetworkDebugger.NetworkMonitor.trace(var);
You cannot use a concatenation expression such as the following:
NetworkDebugger.NetworkMonitor.trace("hello" + myVar);
After you insert the trace statement in your ActionScript, the trace statement should appear as a 
trace event in the Network Debugger when the application calls the server—as long as your code 
doesn’t have logic or some bug that prevents the section of code containing the trace statement 
from executing.
Note: You can also use plain ActionScript trace statements and view them in the Output panel after 
setting breakpoints in the file and starting the debugger. The syntax of these trace statements differs 
from Network Monitor trace statements. For more information, right-click the tab of the Output panel 
and select Help from the context menu.