Flex saves trace results to notepad

Source: Internet
Author: User
Flex) writes all trace ()/log output messages in the project to a text file and saves

InFlex BuilderOrFlexInDebugMode test our code. Some trace () methods and error information may be output in the "console" so that we can check whether the code we need to execute is normal, and output other information that we need to test. However, when there are too many output information, the FB console will delete the latest output by default, which may affect viewing. Other settings may not delete the early information, but this article is not concerned about this.

.

Here we will talk about writing complete output information to a file and saving it. For example, the file name is flashlog.txt, which is convenient for complete viewing.

In fact, this method is already available when Adobe Flash Builder is installed. The following describes how to enable this function and how to view the generated output text. The default file name is flashlog.txt. Reprinted please note Source: http://hi.baidu.com/taotao5453, thank you

.

1,

Control the output configuration file mm. cfg. This file has attributes used to determine whether to output trace () and logging information (more broadly speaking, all the information that can be seen in the "console") into text,

Shows the path of the mm. cfg file.

-


-

Open mm. cfg in notepad and set the following two values to "1,

ErrorReportingEnable = 1

TraceOutputFileEnable = 1

.

2,

After the above settings, we debug the project we created in Flash Builder/Flex in debug mode. In addition to the output information on the console, we can find the flashlog.txt file that records the output information in the system.

.

The flashlog.txt path is displayed,


.

.

My system is Windows 7, and flashlog.txt is here:


.

-

**It is worth noting thatIn some systems, the AppData or Application Data folder is hidden by default. You need to open "Show Hidden Files" in the file system properties to see it.

.

.

.

Reprinted please note Source: http://hi.baidu.com/taotao5453, thank you

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.