As3]tracer-flash code Debugging Class
Component version: 1.0
Feature Description: You can debug code (similar to the Trace command) from the Flash edit state.
Running platform: Flash Cs3,actionscript3,flash Player 9 +
Call Interface:
Copy Code code as follows:
Public interface Com.klstudio.util.Tracer {
Whether it is a control console;
function Isconsole (): Boolean
Debug as Code;
static function Debug (object:*): void
}
Example Description:
1, the first installation of Tracer component files (component installation package files in the download file);
2, put the tracer components into the library or scene;
3, to "import Com.klstudio.util.Tracer" to refer to the class;
4, open the download file in the Tracer.exe (this is the console file);
5, the following is the invocation of the instance program;
Copy Code code as follows:
Import Com.klstudio.util.Tracer;
var A:boolean = false;
Tracer.debug (a);
var b:number = 1.22;
Tracer.debug (b);
var c:array = ["A", "B"];
Tracer.debug (c);
var d:sprite = new Sprite ();
Tracer.debug (d);
var e:shape = new Shape ();
Tracer.debug (e);
Package download