3
votes

I've read that Adobe's Flash Builder 4.0+ supports profiling of ActionScript 3 applications. Is it then possible to use Flash Builder to profile OpenLaszlo SWFx runtime applications accordingly?

The conversion of OpenLaszlo's LZX source code into an SWF file happens in multiple steps, and the compiler generates ActionScript source code during this process. How could that source code be used to debug an application inside Flash Builder?

enter image description here

Based on what I know about Flash Builder, ActionScript 3 applications, and OpenLaszlo it should not be difficult to compile and profile an application once the source code exists. And it should even be possible to debug Adobe AIR for Android applications remotely, shouldn't it?

2
This seems feasible. They seem to use the Flex compiler to create the SWF. All you need to do is compile a SWF that has the debug info in it. Not sure if a different SWF is produced while profiling or if the debug SWF is also used.Sunil D.
If an application is compiled with debug mode active, a different LFC version is used. Since both LFC versions are just SWC files, I guess I have to make sure that you add the correct SWC to your library folder. The SWC files are: $LPS_HOME/lps/includes/LFC10-debug.swc and $LPS_HOME/lps/includes/LFC10.swc (for OpenLaszlo 5.0 trunk).user1587219

2 Answers

1
votes

The OpenLaszlo Wiki has a page with some information on how to compile an SWF to be able to profile the application. You have to compile the LZX file using the command line compiler, e.g.

lzc --flex-options=debug --runtime=swf10 your-app.lzx

If you use the flex4.6 branch of OpenLaszlo (only nightly builds available at the moment), you can compile your app for Flash Player 11, using the swf11 runtime switch:

lzc --flex-options=debug --runtime=swf11 my-app.lzx

Flash Builder 4.6 is still available for free for a 60 days trial period, but there is only a Windows and OS X version available now (Linux version has been discontinued).

1
votes

I have created a project on Github containing an Ant build script and the required files to profile and debug an OpenLaszlo application with Flash Builder 4.6 on either Windows or Mac.

Here is a screenshot of an OpenLaszlo application running in the profiler:

enter image description here

I have a created a PDF with a complete tutorial showing how to debug and profile OpenLaszlo SWF11 runtime applications, including the SWF11 LFC classes. The document titled "Profiling OpenLaszlo Applications with Flash Builder" can be downloaded from GitHub.