View unanswered posts | View active topics



Reply to topic  [ 2 posts ] 
Debugging AIR apps - FDB connection failed 
Author Message
Member

Joined: Tue Feb 12, 2008 1:15 am
Posts: 2
I'm having troubles debugging an AIR application. FDB starts to run and i get a command box up for half a second before it close and flashdevelop says its waiting to connect. The app is just a hello world app using the default AIR Flex 3 template that comes with beta 5. I'm using the Flex 3 beta 3 SDK with FlashDevelop 3 beta 5 and all version of the Flash Debug Player (Plugin, ActiveX and stand-alone). Is there anything else that needs to be done to get AIR working in FlashDevelop? Below is the output information from FlashDevelop.


Code:
Running process: C:\Program Files\FlashDevelop\FirstRun\Tools\fdbuild\fdbuild.exe "F:\Code\Personal Development\FDAIR\FDAIR\FDAIR.as3proj" -ipc 45750e32-6628-4c2c-ab69-ac33d51e70c6 -compiler "C:\Program Files\FlashDevelop\Flex 3 b3 SDK" -library "C:\Program Files\FlashDevelop\FirstRun\Library" -cp "C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\ActionScript 3.0\Classes" -cp "C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\Component Source\ActionScript 3.0\User Interface" -cp "C:\Program Files\FlashDevelop\AS3 Classes" -cp "F:\Code\.AS Classes\AS3"
Using the Flex Compiler Shell.
Building FDAIR
mxmlc -load-config+=obj\FDAIRConfig.xml -debug=true -incremental=true -benchmark=false +configname=air -o obj\FDAIR633383404456890000
compile 1
 Loading configuration file C:\Program Files\FlashDevelop\Flex 3 b3 SDK\frameworks\air-config.xml
Loading configuration file F:\Code\Personal Development\FDAIR\FDAIR\obj\FDAIRConfig.xml
Nothing has changed since the last compile. Skip...
obj\FDAIR633383404456890000 (262857 bytes)
(fcsh)
Build succeeded
Done (0)
[Shutting down FDB]
Test Movie: C:\Program Files\FlashDevelop\Flex 3 b3 SDK\bin\adl.exe "bin\FDAIR.xml"
(fdb) run
Adobe fdb (Flash Player Debugger) [build 189825]
Copyright (c) 2004-2006 Adobe, Inc. All rights reserved.
(fdb) run
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.



Tue Feb 12, 2008 1:23 am
Profile
Member

Joined: Tue Feb 12, 2008 1:15 am
Posts: 2
Post fix
s3rgi0's fix got the debugger running. Just in case anyone runs across this. The original post is here

http://www.flashdevelop.org/community/v ... php?t=2516

and the complete AIR template for AIR beta 3 is here:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<application xmlns="http://ns.adobe.com/air/application/1.0.M6">

   <id>$(PROJECTNAME)</id>
   <filename>$(PROJECTNAME).swf</filename>
   <version>1.0</version>
   
   <name>$(PROJECTNAME)</name>
   <description></description>
   <copyright></copyright>
   
   <initialWindow>
      <title>$(PROJECTNAME)</title>
      <content>$(PROJECTNAME).swf</content>
      <systemChrome>standard</systemChrome>
      <transparent>false</transparent>
      <visible>true</visible>
      <minimizable>true</minimizable>
      <maximizable>true</maximizable>
      <resizable>true</resizable>
   </initialWindow>
</application>


the templates to update are located in:
FlashDevelop\FirstRun\Templates\ProjectTemplates\06 ActionScript 3 - AIR Flex 3 Projector\bin
and
FlashDevelop\FirstRun\Templates\ProjectTemplates\06 ActionScript 3 - AIR Projector\bin


Tue Feb 12, 2008 8:23 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.