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 |