BIT-101 [2003-2017]

Flash Debug Panel


Well, I’m probably a big fat copycat for doing this, since at least two others have done similar projects recently, but it’s something I’ve wanted to do for a while, so I did it. And the finished product is so cool I couldn’t not post it.
So, here is my Flash Debug Panel.

Instructions as contained in the package:

  1. Put the Debug.as file in the root level of your class path.
    If you don’t know what a class path is, you’re going to have to find out on your own. sorry.

  2. Run the “Flash Debug Panel.exe” file.

  3. In your code, you can use the following methods and syntax:

Debug.trace(“hello world”); // any type
Debug.trace(value1, “hello”, _root); // any types separated by commas
Debug.traceObject(myComponent, n); // n is how many levels deep the trace will iterate
Debug.clear(); // clears the panel

  1. In the panel, you can:

– press “Clear” to clear the panel.
– press “Save” to save contents of panel to a text file (save dialog will open).
– press “Print” to send contents of panel directly to printer (NO print dialog).
– change the font size (minimum 8).
– select “On top” to keep the panel the topmost window.
– select “Get focus” to move the panel to the top when it gets new content.
(only applicable if “On top” is not selected)

Also in the package is the fla used to create the panel in case you want to do something more with it. The .exe was made with SWF Studio. I started to use Zinc, but it didn’t seem to have support for making a window stay topmost.

As mentioned, the others who have done similar projects in the past week are hiddenresource and Robert Hoekman. Again, this is an idea I’ve had for a while, one I’d started a couple of times and never followed through with. These guys totally beat me to the punch and inspired me to finish mine. Also, all of the code and concepts are mine. I didn’t view or copy any of their source. The others also probably have some cool features that mine doesn’t, so go forth and check them out. Mine does exactly what I want it to. The others might be more suited to your workflow.

« Previous Post
Next Post »