[Arthropod] AIR Application을 이용한 AIR, Flash Debugging

Debugger — Tags: , — Siaa @ 11:20 pm

흔히 플래시로 작업할 때 trace() 를 이용해서 간단한 디버깅을 하게 되죠.
하지만, 해당 swf 파일을 html 에 넣고 로컬이나 서버에서 확인할 경우엔 trace()의 결과값 확인이 불가능 합니다.
이럴 때 요놈을 쓰면 편리합니다. 다만, 지금까지 쓰던 trace() 가 아닌 Debug.log() 를 사용해야 합니다.
arthropod
우선 해당 사이트는 Arthropod – http://arthropod.stopp.se/ 여기구요.

1. Arthropod AIR 을 다운로드 해서 설치합니다.
(설치가 안 되시는 분들은 Adobe AIR Installer 를 우선 설치하셔야 합니다.)

2. Debug Class 를 다운로드 한 뒤,
Debug.as 파일을 com/carlcalderon/arthropod/ 의 경로에 넣어주고 나서, import 해 줍니다.

import com.carlcalderon.arthropod.Debug;

3. 그리고 디버깅이 필요한 곳에

Debug.log("My log message");

의 형식으로 디버깅 코드를 작성합니다. (아래처럼 색상 코드를 사용할 수도 있습니다.)

Debug.log("My log message",0x00FF00);

4. 설치된 Arthropod를 실행한 뒤, swf 파일을 실행하거나 swf가 삽입 된 html을 실행하면 Arthropod 에서 디버깅이 가능하게 됩니다.

Debug.as 파일에서 설정한 password 와 Arthropod -> Settings -> Connection Password 가 같아야만 Arthropod에서 결과값을 확인할 수 있는데, password 를 변경하려면 Debug.as 파일의 아랫부분을 수정해 주면 됩니다.

public static var password:String = 'CDC309AF';
  • Share/Bookmark

0 Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.
(c) 2010 blog.flasia.com | powered by WordPress with Barecity