Testing and debugging Flex files
91
Debugging applications by monitoring interactions with the server
If your Flex application isn’t working as expected, you can use the Network Monitor to look for
clues to the problem. When enabled, the Network Monitor monitors and records all data
transactions with the server and displays the information in the Results panel.
The Network Monitor records and displays the following information:
•
Events relating to the MXML service tags, including the
<mx:WebService>
,
<mx:HTTPService>
, and
<mx:RemoteObject>
tags
•
Transport layer information, including SOAP envelopes and AMF/FlashRemoting packets
•
Interactions resulting from the use of the ActionScript XML object, such as XML.send() and
XML.sendAndLoad()
•
HTTP traffic
The Network Monitor displays data that comes from the server in its native ActionScript
equivalent.
In general, the Network Monitor captures and stores all event data until you either quit the
application or explicitly clear the data. The events are displayed in chronological order. You can
also selectively filter out specific events.
This section contains the following topics:
•
“Turning on the Network Monitor” on page 91
•
“Monitoring interactions with the server” on page 92
•
“Using trace statements with the Network Monitor” on page 93
•
“Saving event data” on page 94
Turning on the Network Monitor
The Network Monitor inserts itself between the application and the server to gain complete
access to the data passing between them. You must enable it before using it.
To enable the Network Monitor:
1.
Make sure a Flex server is defined as the testing server.
For more information, see
“Starting a new application in Flex Builder” on page 9
.
2.
In the Network Monitor panel in the Results panel group (Window > Results), click the Play
button on the sidebar and select Settings.
The Network Monitor Settings dialog box appears.
3.
In the Network Monitor Settings dialog box, accept the default port values or specify the local
communication ports that the Network Monitor should listen in on.
Содержание FLEX BUILDER-USING FLEX BUILDER
Страница 1: ...Using Flex Builder...
Страница 116: ...116 Chapter 4 Building a Flex User Interface Visually...
Страница 144: ...144 Chapter 6 Working with Data...
Страница 154: ...154 Appendix A Basic Flex Concepts...
Страница 158: ...158 Index W Watch panel 90 web servers 19 web services Flex 153 WEB INF 123 125 WebLogic 20 WebSphere 20 workspace 5...