ZoomFlex Server-side Debugging
ZoomFlex provides a quick and easy way to enable remote debugging that allows you keep track of incoming remoting calls on the server.
To enable this server-side remoting debugging, you setup a variable in the ModelLocator that tells the server-side ZoomFlex gateway to dump the information it receives from the client-side application to a file of your choice on the server. The information dump not only contains the details of the server-side component and method being called by the client application (like component name, method name, arguments etc.), but also contains information about the results returned -- how long did the the method take, what were the results, etc.
To enable ZoomFlex Server-side Debugging, you need to change a couple of variables in the ModelLocator. First you enable remote debugging by setting the value of the variable called "externalRemotingDebugging" to true. And then you provide the absolute path to the server-side file where you would like the remote debugging output to be created. The following code shows how to setup these two variables:
public var externalRemotingFilePath : String = "c:\\flexdump.html";
These variables can be found under the "Debugging and server" section in ModelLocator.as of a ZoomFlex application.
Compile your application after saving these changes and run it. Go to a view that makes remote calls (like listing, add, delete, update). Browse to the absolute path you specified on the server. You should see the file created at that location. If the absolute path lies inside the webroot root, then you can browse to it in a web browser. Open the file and you'll see a dump like this:

ZoomFlex overwrites this file each time a new remoting call is by the client application. As a result you will always see the results of the last remoting call that the ZoomFlex gateway encounters.
Also, keep in mind that you should disable remote debugging by setting the value of externalRemotingDebugging variable to false before the final compile of your application. If you don't, then you create extra server over-head in production as the ZoomFlex gateway will continue generating remoting debug information in production mode.
Next approach: Server-side Logging »
Comments
There are no comments for this page as yet.
print page
