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 you connect the debugger to the player, the connection may break at any time, or it may not end at all. This is due to the curvature of the native player, which has been relevant for more than a year. I did not find anything useful in Google. Because the most sane standalone debug player is Adobe Flash Player Debugger Projector for windows, why not run it under Wine.

    Download and install:
    Wine
    Flash Player 10.1 Projector content debugger

    Create the flash_player folder in the home directory, throw the downloaded flashplayer_10_sa_debug.exe there. In it, we create a script with which we will run our applications: Call it flashplayerdebugger_10, do it:
    #!/bin/sh
    wine /home/{имя пользователя}/flash_player/flashplayer_10_sa_debug.exe $*



    chmod +x flashplayerdebugger_10

    That's it, the debugger works, but if your application loads third-party swfs (from the server for example), it will swear at violation of the Security Sandbox. The problem is that under Wine, the player does not see the Linux settings. We need to add our swf to trusted files for flash. In the ~ / .wine / drive_c / users / {username} / Application Data / Macromedia / Flash Player / # Security / FlashPlayerTrust directory (if not, create it) create a winetrust.cfg file and specify the path to our swf file in it :
    Z:\путь\к\свф\файлу

    Z is the letter of the root section, see winecfg.

    Now in our favorite IDE or debugger, we are debugging using our flashplayerdebugger_10 script.

    Good debugging and less bugs!

    Also popular now: