📜 ⬆️ ⬇️

Debugging Flash Applications Under Linux

If you are developing Flash (Flex) for Linux, then you are probably faced with the problem of debugging applications. When the debugger connects to the player, the connection may break at any time, or it may not break at all. This is due to the curvature of the native player, which is relevant for more than a year. I did not find anything useful in Google. Because The most sane standalone debug player is the Adobe Flash Player Debugger Projector under windows, so why not run it under Wine.

Download and set:
Wine
Flash Player 10.1 Projector content debugger

Create a folder flash_player in your home directory, throw the downloaded flashplayer_10_sa_debug.exe there. In it we create a script with the help of which we will launch our applications:
#!/bin/sh
wine /home/{ }/flash_player/flashplayer_10_sa_debug.exe $*


Call it flashplayerdebugger_10, do it to him:
chmod +x flashplayerdebugger_10

Everything, the debugger works, but if your application loads third-party swf (from a server for example), it will swear at the violation of Security Sandbox. The problem is that under Wine the player does not see the Linux settings. We need to add our swf to the trusted files for flash. In the directory ~ / .wine / drive_c / users / {username} / Application Data / Macromedia / Flash Player / # Security / FlashPlayerTrust (if we don’t have one, then create) create the winetrust.cfg file and specify the path to our swf file in it :
Z:\\\\

Z is the root letter, see winecfg.

Now in your favorite IDE, or debugger, debug using our script flashplayerdebugger_10.
')
Successful debugging and fewer errors!

Source: https://habr.com/ru/post/111525/


All Articles