Flash Debugger in IDEA - actionscript-3

When I try to use Flash Player debugger in IDEA I get such message
Waiting for Player to connect
Failed to connect; session timed out.
Ensure that:
1. you compiled your Flash movie with debugging on, and
2. you are running the Debugger version of the Flash Player.
Although I managed path to the debugger in Remote Configuration. What is wrong?

I have found the answer.
Right click on Flash Player -> Debug -> localhost option is enabled.
The problem was I had specified a certain port. But IDEA uses its own default port only so you don't need to manage it.

If you use Remote debug then you need to ensure that your browser has Flash Player Debugger installed and enabled.

Related

Remote Debugging won't connect

I sort of make shift followed this guide on how to setup remote debugging. Since I am using Adobe Animate to compile my app I assume it has done the majority of the build steps already as I get a similar screen described.
I don't understand though. Here I have port forwarding up on my router so that it goes to my PC. I have TCP port 7935 up and open. Windows firewall on or off doesn't seem to make difference. Windows firewall even prompted me to allow or deny fdb after I ran it. I can't get my phone to connect via remote debugging. I want to be able to send this to my client who is having issue with the app so I can see what's going on under the hood instead of relying on a giant sum of try/catch statements and screenshots. Any help?
I tried a dummy domain and it seems to know that it can't connect to it. When I try mine or my IPv4 it doesn't let me connect. It just freezes up the app.
I don't know whether it works or not in Animate CC, but it works via Flash Builder. I'm using Android real device and I have Android SDK tools installed on my PC
Yes, I have followed that tuts from official Adobe docs, but that doesn't work
First: Simply connect your device to your PC
Actually , you can debug your app remotely as long as your device has been connected with your PC. This step, doesn't necessarily requires FDB.
In my case , all I need was things like
adb connect 192.168.xx.xx:port
this will connect your Android device with your PC on your default network .
Second, set debug setting over network
You've done it in Animate CC, with addition you might want to check "install application on the connected device'
Third, just debug as usual
You can get all those debugging stuff including traces

Error after build AIR for desktop

Is there a way to debug a application after it´s build?
It works perfectly in the IDE (Flash), when I build and execute, it just stop during the execution.
If you check the Permit Debugging option in the Publish Settings then you should be able to connect to the Flash debugger while running the app.
When you start the app you should see a message that it's trying to connect to the debugger in Flash go to Debug > Begin Remote Debug Session and it should connect to the app.

Flash Builder debugger failed to connect to the running application with tomcat

I had look into similar question in the stack overflow and tried all the solutions given there, but nothing works for me.
I have a Flex Web application running in localhost with tomcat, i have used Mongrel plugin in Flash Builder to run tomcat.
I am using Firefox browser.
When I try to debug my application it is throwing below error :
The Flash Builder debugger failed to connect to the running
application.
Ensure that:
For in-browser applications, you are running the debugger version of Flash Player.
For network debugging on a mobile device, you have a reliable network connection to the device, and port 7935 is open on your
machine's firewall.
Device connection help
link : error screenshot
I did check with netstat for port 7935 and there is no service running on this port.
I also added the solutions in catalina.properties file as suggested by others in related question but it did not worked out.
kindly help me fix this problem.
Thanks in advance!
The tomcat application is probably not serving the debuggable swf from flashbuilder project. What I have in a (I believe) similar setup is: also change the output directory from your flex project to the webcontent folder of the tomcat application.
Flashbuilder generally doesn't create index.html from the template but ${project.name}.html instead. Make sure you use that when trying to debug.
{workspace}/flexapp/src/MyApplication.mxml
{workspace}/webapp/WebContent/bin-debug <-- oupput folder of flexapp
If you start the tomcat application from Flashbuilder now it will include the debuggable SWF from the flex project.
The flex output URL should then point to http://localhost:8080/myapplication/bind-debug/MyApplication.html?Authorised=true&debug=true

Compiler errors in Flash Pro

I am using Flash Professional authoring tool with ActionScript 3 code. Basically, I'm trying to capture a live webcam feed using NetConnection, NetStream Camera and Video classes via Flash Media Development Server. When I run the code I receive this in my output:
ArgumentError: Error #2126: NetConnection object must be connected. at flash.net::NetStream/ctor() at flash.net::NetStream()
I don't really understand what could be causing this error my code is perfectly fine..Its very frustrating. When I debug I get this:
SecurityError: Error #2028: Local-with-filesystem SWF file file:///C|/Users/Name/AppData/Local/Temp/Untitled%2D1.swf cannot access Internet URL rtmfp://localhost/flashExam.
[SWF] C:\Users\Name\AppData\Local\Temp\Untitled-1.swf - 3853 bytes after decompression
It appears the swf file cannot gain access FMS. Why is this? And, does anyone know what I can do to resolve these issues?
Are you running the SWF locally, e.g., opening in the browser or from a local HTML opened in the browser? Flash doesn't let you normally connect to servers and services outside of the domain. Try running a local server (e.g. XAMPP/Apache) or hosting it somewhere and trying again.
You could also try changing your flash settings to allow your swf location to be trusted. Generally the flash player doesn't allow a swf running from the file system to access resources on the internet. Try heading over to the settings panel and add the folder you are running your swf from.

debugging swf locally with remote data

I'm trying to debug a swf in Flash Professional CS5.5, by running the debug-> Debug Movie -> In Flash Professional. When I do I get teh Adobe Flash Player Security window. It says you are trying to connect to and the I.P. address of the server (e.g. 203.22.35.101). I've opened the settings and added that I.P. under Advanced->Trusted Location Settings... that doesn't help.
Does anyone know how to enable it?
btw: If I run -> Control -> Test Movie -> In Flash Professional it works fine, but then I can't debug.
Embedded debugger is not very convenient. Try arthropod or other debugger. This will solve your problem with debug.