: WARNING - support of the decompiler is now VERY LIMITED. There are no active developers. This means waiting times in the issue tracker are very long and mostly depend on community. Sorry for the inconvenience.

List of issuesList of issues

#1129 How do I enable ActionScript debugging?
Author: user capasha
Date created:
Type: question
Visibility: Everybody
Assigned to:
State: new Help

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).
admin
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...
admin
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
user
I don't see any "debugging" tab. And no variables. This is all I can see, http://i.imgur.com/kJVfcIa.png
admin
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)
admin
adding the screenshot here
DownloadkJVfcIa.png (127 KiB)
user
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
user
I think it have to do with administrator access. But I have no idea how I add it to flash.
admin
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.
user
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.
admin
And the screen is the same as in kJVfcIa.png, just without the red icon?
admin
It works in nightly build for me - try nightly build.
user
Yes.
user
I tried nightly build. The debugger just start and then ends in 1 second. No errors do I get either.
admin
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.
user
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.
admin
And the screen is then the same as in kJVfcIa.png? Or anything changed?
user
It's the same as the screenshot. Yes.
user
Here is a movie when I try to debug. I hope it will show you that it doesn't work.
admin
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?
user
I changed the flash players directory and harddrive. I still can't get it to work. Is this correct added?
user
Oh and my OS is Windows 8.1 64bit.
admin
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
admin
Btw. the title in the advanced settings matches the download link title - "the projector" is critical.
user
Now it works. But it loads forever when im debugging a swf. Is it possible to copy all values from debug?
admin
You can create feature request for copying it - add new issue.
 
Google Translate: Translate to Czech Translate to Slovak Translate to Russian Translate to Hungarian Translate to Swedish Translate to French Translate to German Translate to Spanish Translate to Italian
Change style: oceanic classic