...
(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:
Create a Launch Configuration for your SWF as you would do normally for a classic Flex application.
Click on Run or Debug
.
...
for launch SWF version of application
In order to launch and debug JS version of application:
- In the Project pane, navigate to and right click on /out/<Your module name>/js/out/bin/js-debug/index.html
...
- Click on Run or Debug 'index.html'
...
- . 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.
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.
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.
...