header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.

Runtime Flex Tracer and Debugger
Posted By : Inder | Posted At: 7/14/2010 11:56:55 AM



Runtime Flex Tracer and Debugger : While developing flex applications most of the time we struck into the situation when we want to trace some variables and debug our running application. For that we add some textbox and then set the value to that textbox and see it in the running application. So i decided to create a simple and efficient solution to save a lot of development, testing and debugging time in flex applications. I created Tracer class which can be used directly in the project. All you need to do is copy it in your project and its ready to do the magic.

Flex Tracer Class Functionality: It can be used to trace any value as we do with default trace in flex. Flex Tracer window appears by pressing "~" (TILD) key which will show you all your traces like the output / Console window. More than that you can pass the color for message also , so that it can be easily distinguished from other messages. Which makes it extremely user friendly and handy to use. Now you can trace your application anytime anywhere whether you are using a debug version of flash player or not. It just works anywhere .

How to use Runtime Flex Tracer: Copy the itrace.as in your flex 3.0 Project and use the following syntax to add the traces:

itrace.msg("Your message");

To add color to message pass the second optional parameter. It can be 0 to 9 for different colors. Default message color is black.

itrace.msg("Your message", 2);

Download
:itrace.as

See Runtime Flex Tracer in action: Use Tilde key to show or hide the tracer window. Click on the buttons to see the runtime messages being added to Tracer window. You can also drag the Traces window using mouse. Donot hesitate to send me feedback /suggestions using http://askmeflash.com/contact.



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions