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

872 Views Asked by At

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:

  1. For in-browser applications, you are running the debugger version of Flash Player.

  2. 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!

1

There are 1 best solutions below

4
Robin van den Bogaard On

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