Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

(Fix the eventual error the compiler found and use Build -> Make project)

 

It is time now In order to launch the and debug SWF version of application:

  1. Create a Launch Configuration for your SWF as you would do normally for a classic Flex application.

    Image Modified

  2.  Click on Run or Debug

    .

Image Removed

...

  1. for launch SWF version of application

    Image Added

     

In order to launch and debug JS version of application:

  1. In the Project pane, navigate to and right click on /out/<Your module name>/js/out/bin/js-debug/index.html

...

  1. Click on Run or Debug 'index.html'

...

Image Removed

 

  1. . It will open the index.html in your default browser, in order to be able to debug your module in the browser, you will need to debug your application in Chrome.

I use to create another Chrome instance.

Image Removed

The --disable-hang-monitor option will allow you to be able to continue to debug even after the script time out limit in case of a SWF / SWC.
The --disable-bundled-ppapi-flash will allow to use the NNAPI Flash debugger plugin instead of the PPAPI one, if it is not installed,
you can download and install it from https://www.adobe.com/support/flashplayer/downloads.html

...

Set a break point in one of the JS file and launch the Debug configuration again, it will now break at it.

Image Removed

 Image Added

I will now explain how to configure IntelliJ modules based on Externs which will allow you to create low level FlexJS components based on AS3 / JavaScript but written in AS3-JS only or simply to create AS3-JS application. 

  • What are externs ?

There are AS3 surface API for JS libraries.

...