<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>中文Flex例子 &#187; Debug</title>
	<atom:link href="http://blog.minidx.com/tag/debug/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.minidx.com</link>
	<description>中文Adobe Flex例子,Flex实例教程,RIA资源,全文检索技术,算法和数据结构</description>
	<lastBuildDate>Thu, 31 Mar 2011 03:22:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>一个简单但是非常实用的AIR log类</title>
		<link>http://blog.minidx.com/2008/09/13/1391.html</link>
		<comments>http://blog.minidx.com/2008/09/13/1391.html#comments</comments>
		<pubDate>Sat, 13 Sep 2008 13:04:26 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Adobe其他]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Debug]]></category>
		<category><![CDATA[ERROR]]></category>
		<category><![CDATA[FATAL]]></category>
		<category><![CDATA[info]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/09/13/1391.html</guid>
		<description><![CDATA[在the list of helpful Flex or Flash debug tools中，我们可以找到看到很多非常好用的Flex/Flash调试工具，对于输出INFO, DEBUG, ERROR, FATAL这样不同等级Log当然也都是没有问题，不过对于一些应用来说，可能我们并不需要引入整个调试包。下面是一个非常简单但是却可以满足基本所需要的log调试所需要功能的类，可以方便的使用。下面是代码：








package com.engroup.log
/**
* The custom logger factory of eSoftHead company
*/
public&#160;class LoggerFactory
{
&#160; &#160; private&#160;static var instance:LoggerFactory = new LoggerFactory();
&#160;
&#160; &#160; function&#160;LoggerFactory()
&#160; &#160; {
&#160; &#160; &#160; &#160; if&#160;(instance != null) {
&#160; &#160; &#160; &#160; &#160; &#160; throw&#160;new Error(&#34;The instance Logger already be exist&#34;);
&#160; &#160; &#160; &#160; }
&#160;
&#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/09/13/1391.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>一步一步教你Flex Builder中如何进行程序的调试(Debug)</title>
		<link>http://blog.minidx.com/2008/07/30/1186.html</link>
		<comments>http://blog.minidx.com/2008/07/30/1186.html#comments</comments>
		<pubDate>Tue, 29 Jul 2008 23:45:43 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Adobe其他]]></category>
		<category><![CDATA[Debug]]></category>
		<category><![CDATA[Flex Builder]]></category>
		<category><![CDATA[IED]]></category>
		<category><![CDATA[insideria]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/07/30/1186.html</guid>
		<description><![CDATA[不管是用什么语言，在程序开发的过程中总是不可避免的会有各种各样的错误/问题（当然“Hello World”程度的除外……），这个时候我们就需要对程序进行逐步调试。所以IDE本身集成的调试环境往往都是很重要的，当然，Flex也是一样，insideria的这篇教程，非常详细的一步一步图文并茂的说明了Flex Builder中如何进行程序的调试(Debug)，有兴趣的可以看看：








http://www.insideria.com/2008/07/lffs-13-flex-builder-part-3-in.html
你可能还对下列文章感兴趣:使用Flex Builder 3.x中的性能分析工具利用ANT编译你自己的SWC如何加速你的Flex Builder？如何恢复Flex builder和Eclipse被删除的文件Flex Builder 3中使用Adobe AIR 1.1 SDK的具体步骤]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/07/30/1186.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Linux下ActionScript 3的调试(Debug)方法</title>
		<link>http://blog.minidx.com/2008/05/27/875.html</link>
		<comments>http://blog.minidx.com/2008/05/27/875.html#comments</comments>
		<pubDate>Tue, 27 May 2008 12:22:38 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Adobe其他]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Debug]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SDK]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/05/27/875.html</guid>
		<description><![CDATA[在前面的Linux上用ActionScript 3(Adobe FLEX 3.0 SDK)开发Adobe Flash应用(英文版本)中，我们尝试着在Linux的环境下，利用Adobe Flex 3.0 SDK成功的搭建好了开发环境并且让我们的&#8220;hello actionscript 3&#8243; 得以运行了。相对于Windows下的程序员来说，Linux程序员的调试(Debug)显得就要复杂一些。而像仅仅利用Adobe Flex 3.0 SDK的用户来说，就显得更加麻烦一些了。不过麻烦并不表示功能上它就比较弱，相反的当你习惯了Linux的gdb（Flex 3.0 SDK的fdb）之后，你会发现原来在Linux下你可以按照你的思维来调试程序，而不是像Windows下那样，你的思维需要跟着调试的结果走。不那么废话了，还是让我们赶紧尝试着Linux下的Debug之旅吧。








Linux下的Debug方法：
・使用debugger
・最为原始的print方法
我们大体上可以划分为上面的两种。接下去具体就每一种方法进行说明。
&#160;・使用debugger
所谓的利用debugger，也就是利用Adobe Flex 3.0 SDK中附带的fdb这个工具来调试我们的程序的方法。
・安装
要使用fdb，一个必要的条件就是需要系统中安装了flashplayer。flashplayer在前面Linux上用ActionScript 3(Adobe FLEX 3.0 SDK)开发Adobe Flash应用(英文版本)中我们下载的Adobe Flex 3.0 SDK中已经包含了。输入下面的命令进行安装：
$ tar xvfz flex/runtimes/player/lnx/flashplayer.tar.gz
$ sudo&#160;cp flashplayer /usr/bin
・fdb的用法
要想利用fdb对swf文件进行调试（debug），需要swf文件中包含调试所需要的信息。这需要我们用mxmlc编译的时候，将-debug=true这个选项加上进行编译。Makefile可以写成下面这样：
MXMLC = /tmp/flex/bin/mxmlc
MFLAGS = -debug=true
&#160;
TARGETS&#160; = hoge.swf
&#160;
all: $(TARGETS)
&#160;
clean:
&#160; &#160; &#160; &#160; $(RM) $(TARGETS)
&#160;
.SUFFIXES:&#160; &#160; &#160; .as .swf
.as.swf:
&#160; &#160; &#160; &#160; $(MXMLC) $(MFLAGS) [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/05/27/875.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching using disk
Object Caching 287/584 objects using disk

Served from: blog.minidx.com @ 2012-02-09 10:10:18 -->
