title: Flash Builder 4 - Flash Player failed to connect to debugger
body: <p>I just finished my installation of Adobe Flash Builder 4. I've definitely installed the most recent flash player from Adobe's website onto my computer. Also, in the run configurations of flash builder 4, I changed the source path from the .html file to the .swf file that is generated. I don't need to test it in a web browser, I just want to run the swf in flash player.</p>
  
  <p>I only have 1 .as file in my actionscript project and there is no code written in it other than the package, class and main function statements. When I run the .html file, it runs fine, and debugs fine. However, when I switch the source path to the .swf file, it runs fine but <strong>doesn't debug</strong>!</p>
  
  <p>When I debug it, the progress gets stuck at 57% and it says "Waiting for Adobe Flash Player to connect to debugger..." in the "Progress" tab. After a few minutes a window pops up that says:</p>
  
  <p>"Failed to connect. The session has timed out. Ensure that you have run the application with debugging on and that I have the debugger version of flash player."</p>
  
  <p>What can I do to fix this? I am on an intel Mac running OS 10.6.5.</p>
  
  <p>Thanks</p>