InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

Alcon 3: The alternative Open Source ActionScript Debugging Tool

Posted by Moxie Zhang on Sep 10, 2008

Sections
Development
Topics
Rich Internet Apps ,
Java
Tags
ActionScript ,
Debuggers

Sascha Balkau has recently released Alcon 3, an alternative open source debugging tool for ActionScript 2 and ActionScript 3. InfoQ spoke with Balkau to discuss how Alcon 3 fits in ActionScript-based rich Internet Application ( RIA) development.

Alcon's Web site describes Alcon 3 as “a lightweight debugging tool for ActionScript developers that provides several straightforward and quickly accessible methods to debug any ActionScript 2 or ActionScript 3 application, be it from the Web browser, the standalone Flash Player or an AIR Runtime.” Alcon runs on any platform that supports Adobe AIR and can be used with the Flex compiler, the Flash IDE or MTASC.

To help InfoQ readers understanding why Alcon 3 was created, Balkau explains:

The first version of Alcon was written when we still had Flash Player 7. The first version was really just a simple logger that basically only could output traces made from ActionScript code. In that respect, it was similar to some of the other loggers written at the time.

Alcon 2 added supports for ActionScript 3 and some new features, like file loggers, so that log files could be monitored, and an Object Inspector, which was rather buggy at that time.

I wrote Alcon at first because there weren't many other options available at that time. You could either output traces in the Flash IDE or use one of the few very basic logging tools that already existed. However, they were too awkward to use for my taste. You had to instantiate the tracing class to use it. Because Alcon's debug class is static, you don't have to instantiate it. I wanted a very lightweight and quick approach to use the debug API.

Comparing Alcon with other ActionScript debugging options, Balkau says:

The goal with Alcon was to offer a quick and comfortable way to debug ActionScript without making it a resource-hogging behemoth. There are other tools, like X-Ray and the Flex Debugger, that let you check the whole state of your application, and they are good in their own right. However, for my purposes, they are overkill most of the time. In most situations, I still do debugging by doing trace outputs.

What makes Alcon different is that it offers some useful features that you don't get with similar tools, while trying to stay lightweight and offering a clean user interface. It's clearly meant to be a developer tool without the fanfare that you find in many Flex applications.

For example, Alcon 3 added the app monitor, so you don’t have to put a FSPMeter directly into your Flash or Flex application. The Object Inspector has been redesigned and is helpful for listing properties of any Object.

When asked about technical difficulties encountered during the development of Alcon 3, Balkau responded:

There weren't really any big hurdles. I guess one hurdle that still has to be addressed is the package size of ActionScript's LocalConnection, which is limited to 40 Kb. Basically, that means that Alcon becomes unreliable when you try to output an object with a data volume larger than that. Although Alcon 3 tries to fall back on using a Local Shared Object in that situation, it doesn't work out as well as initially expected. I'm looking into ways to remedy this, including perhaps by offering an alternative socket connection. But, don't count on it!

As for the next generation of ActionScript 3-based application platform, he says:

Flash Player 10 will come up with quite a few new features that many Flash developers have been requesting. As somebody who is mostly interested in game development, I'm especially looking forward to the new 3D effects, the shaders and the enhanced sound API. For me, this opens up even more possibilities for game programming, although I must admit I haven't even touched all of the version 9-specific features yet. The 3D enhancements are surely going to raise the limit a bit higher with respect to what's currently possible with 3D in Flash. It will still be a far cry from superior 3D gaming, but we're getting closer with each step.

I see ActionScript much more as a welcome alternative for people who are interested in game development now than it was years ago. This is true not only due to its media capabilities, but also because ActionScript is relatively easy to learn, and documentation and examples are ubiquitous on the Web.

nice by Vic _ Posted
  1. Back to top

    nice

    by Vic _

    I will try this.

    .V

Educational Content

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.

Interview: Software Systems Architecture: Working With Stakeholders Using Viewpoints and Perspectives

InfoQ spoke to the authors of Software Systems Architecture on a couple of new topics, the System Context viewpoint and Agile, which have been added to the second edition.

Beauty Is in the Eye of the Beholder

Alex Papadimoulis discusses ugly code, where it comes from, how to avoid it, and how to get rid of it.

Architecting Visa for Massive Scale and Continuous Innovation

John Davies examines Visa’s architecture and shows how enterprises have architected complex integrations incorporating Hadoop, memcached, Ruby on Rails, and others to deliver innovative solutions.

Max Protect: Scalability and Caching at ESPN.com

Sean Comerford unveils ESPN.com’s architecture, what components are used and why, and the current changes the website goes through.

The Seven Deadly Sins of Enterprise Agile Adoption

Are there repeated patterns of failure on Enterprise Agile Enablement efforts? Sanjiv and Arlen discuss Seven Deadly Sins to avoid when adopting Agile in an enterprise.

Questions for an Enterprise Architect

Erik Dörnenburg answers: What is Enterprise and Evolutionary Architecture?, discussing 4 issues: Turning strategy into execution, Ensuring conformance, Where do the architects sit? Buying or building?