#1129 How do I enable ActionScript debugging?
I have seen that this feature exist, but I can't find where to enable it. Or if it's possible to add a trace with as3 editing (Not P-code).
Hi, If it works, then it should be enough to press Debug button with the beatle on it in the Top Ribbon panel. You can add breakpoints to the AS lines - click to linenumber. It launches the file in debug flash player. The file will be played in the player, not on the webpages, so it is kind of limited (loading external content is probably not available, etc). Maybe in the future we will allow debugging right in the webbrowser. Also SWFs which load any other SWF is problematic. I am working on improvements...
You can add traces with AS3 editing, but you can also view variables during the debugging while in breakpoint, see: screenshots/version7.1.2_debugger.png
I don't see any "debugging" tab. And no variables. This is all I can see, http://i.imgur.com/kJVfcIa.png
Then please click red icon in lower right corner and tell me what errors you see in the displayed windows. (You can also copy-paste some errors I guess)
adding the screenshot here
kJVfcIa.png (127 KiB)
This is the error I get. java.io.IOException: Cannot run program ""C:\Users\juccca\Downloads\flashplayer_19_plugin_debug.exe"": CreateProcess error=740, Den begärda åtgärden kräver en privilegiehöjning at java.lang.ProcessBuilder.start(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at com.jpexs.decompiler.flash.gui.Main$1.doInBackground(Main.java:223) at com.jpexs.helpers.CancellableWorker$1.call(CancellableWorker.java:51) at java.util.concurrent.FutureTask.run(Unknown Source) at com.jpexs.helpers.CancellableWorker.run(CancellableWorker.java:68) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.io.IOException: CreateProcess error=740, Den begärda åtgärden kräver en privilegiehöjning at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 11 more
I think it have to do with administrator access. But I have no idea how I add it to flash.
It translates to "The requested operation requires elevation", which looks like it needs to run the player as Administrator. Maybe it needs it only when run from this directory. Try moving the debug flashplayer.exe in other directory, like C:\fp\flashplayer_19_plugin_debug.exe. Then update the path in advanced settings.
I run as administrator now. And no errors comes up. But I can't still see anything like your image showed. Here is the file I tried to debug.
ThumbnailColors.swf (10 KiB)
And the screen is the same as in kJVfcIa.png, just without the red icon?
It works in nightly build for me - try nightly build.
I tried nightly build. The debugger just start and then ends in 1 second. No errors do I get either.
And the screen is then the same as in kJVfcIa.png? Or there is debug menu? Check status bar. The debugger is paused on the beginning - this is normal. But you can disable pausing on start in the settings.
I have no idea where in settings i disable pausing for debugging. And I still just get debugging running in 1 sec and then stops.
And the screen is then the same as in kJVfcIa.png? Or anything changed?
It's the same as the screenshot. Yes.
Here is a movie when I try to debug. I hope it will show you that it doesn't work.
2016-01-08_14-52-51.mp4 (160 KiB)
Thank you very much for the movie! It looks like the debugger flash player does not start at all. Did you try to move it in another directory, which is not in C:\Users or C:\Program files as I suggested? The debugger does not need to be run as Administrator. If you did, then run it normally without it. Which operating system do you have?
I changed the flash players directory and harddrive. I still can't get it to work. Is this correct added?
2016-01-08_15-50-21.png (9 KiB)
Oh and my OS is Windows 8.1 64bit.
Ah, I got it. You have wrong flash debugger. You must click "Download the Flash Player projector content debugger" on the webpage. Not these for webbrowser (firefox,IE). This page: https://www.adobe.com/support/flashplayer/debug_downloads.html
Btw. the title in the advanced settings matches the download link title - "the projector" is critical.
Now it works. But it loads forever when im debugging a swf. Is it possible to copy all values from debug?
You can create feature request for copying it - add new issue.