intellij idea 12 & adobe scout ( monocle ) on windows

Here is a little step by step on how to integrate these fantastic tools. Worked for me :)


1. download and install python : http://www.python.org
2. download and install python setup tools : http://pypi.python.org/pypi/setuptools
3. download add-opt-in.py and put in python scripts folder : https://github.com/adamcath/telemetry-utils
4. add both python.exe and easy_install.exe to path environment : ;C:\Python27\;C:\Python27\Scripts\
5. go to pylzma site : http://pypi.python.org/pypi/pylzma (here you'll find the link you need to the next step)
6. install pylzma for lzma compression in swf : run : easy_install http://pypi.python.org/packages/2.7/p/pylzma/pylzma-0.4.4-py2.7-win32.egg#md5=caee91027d5c005b012e2132e434f425 (or the file related to your python version)
7. create you external tool in intellij idea
 Program : C:\Python27\python.exe
 Parameters : add-opt-in.py $Classpath$\<filename>.swf
 Working Dir : C:\Python27\Scripts\telemetry-utils-master (this is where i put the add-opt-in.py script)
8. use in your project :
 a ) edit configurations -> options -> launch with : <path for flash player debugger 11.5>
 b ) edit configurations -> before launch -> <add run to your external tool>
9. run scout and run configuration in intellij. tested and worked !


Good luck !

5 comments
Comment actions Permalink

Ricardo,

Thank you for these intructions.

They worked great, even with installing 64 bit python, for local applications.

I am using this with a mobile project, and using themmobile emulator it will connect to Scout and debug.


thank you,

-Steven Stark

0
Comment actions Permalink

Ricardo,

I am having one issue still with this setup, and that's with debugging on my mobile device using this setup. The app would be an .apk, and the android device does have scout installed into it. I will do some light troubleshooting on my end and get back to you with results, if positive.

Here's the error:

C:\Python27\python.exe add-opt-in.py D:\Projects\slotspot-mobile\out\production\slotspot-mobile\<filename>.swf
Traceback (most recent call last):
  File "add-opt-in.py", line 137, in <module>
    swfFH = open(infile, 'rb')
IOError: [Errno 22] invalid mode ('rb') or filename: 'D:\\Projects\\slotspot-mobile\\out\\production\\slotspot-mobile\\<filename>.swf'

Process finished with exit code 1

Do you have any thoughts?

-Steven

0
Comment actions Permalink

Ignore my last comment, it all works! I just failed to properly setup the scout app on my device to connect to the pc scout app.

see:

http://www.adobe.com/devnet/scout/articles/adobe-scout-getting-started.html

NOTE: The checkbox to setup the config in the app is light grey and blends into the dark grey background. I didn't see it!

Also, it's worth noting this ant based link:

http://www.swfgeek.net/2012/12/05/adobe-scout-and-how-to-use-ant-to-enable-advanced-telemetry-in-fdt/

0
Comment actions Permalink

Hey man, thanks!

How does the pylzma compression factor in here? I don't see it being called or used in this process.  Could you clarify and advise?

Thanks, kind regards,
adq

0
Comment actions Permalink

pylzma is required for adobe scout to read swf using lzma compression (version 11.something, not sure)

0

Please sign in to leave a comment.