Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Adobe AIR Development

Reply
New Contributor
fm_flame
Posts: 5
Registered: ‎10-12-2012
My Carrier: Developer

Blackberry 10 debug on desktop in Flash Builder fails

As topic says. I am trying to debug the Weather Guesser app from the samples. It works perfectly on the simulator but doesn't run on the desktop with the following error:

 

Process terminated without establishing connection to debugger.

initial content not found


Launch command details:  "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.6.0\bin\adl.exe" -runtime "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.6\sdks\4.6.0\runtimes\air\win" -profile extendedMobileDevice -screensize 768x1280:768x1280 -XscreenDPI 356 -XversionPlatform QNX -extdir "C:\Program Files (x86)\..\Blackberry 10\.metadata\.plugins\com.adobe.flexbuilder.project.ui\ANEFiles\WeatherGuesser\win32\" "C:\Program Files (x86)\..\Blackberry 10\WeatherGuesser\bin-debug\qnx\samples\weatherguesser\WeatherGuesser-app.xml" "C:\Program Files (x86)\..\Blackberry 10\WeatherGuesser\bin-debug\qnx\samples\weatherguesser

 

I only replaced with ".." some part from the full paths above.

 

Does anyone have a clue how to fix this ? I really need to test this on desktop cause debuging on the simulator takes ages.

 

Thanks in advance!

 

Please use plain text.
Developer
Innovatology
Posts: 1,058
Registered: ‎03-03-2011
My Carrier: Vodafone

Re: Blackberry 10 debug on desktop in Flash Builder fails

The Weather Guesser sample is for FDT, not for FlashBuilder. It will take some work to get it to build correctly in FB.

Files & Folders, the unified file & cloud manager for PlayBook and BB10 with SkyDrive, SugarSync, Box, Dropbox, Google Drive, Google Docs. Free 3-day trial! - Jon Webb - Innovatology - Utrecht, Netherlands
Please use plain text.
New Contributor
fm_flame
Posts: 5
Registered: ‎10-12-2012
My Carrier: Developer

Re: Blackberry 10 debug on desktop in Flash Builder fails

I know it is for FDT but that's not the editor of my choosing and since there is no version for FB I did some work and got it to build correctly without any errors and run in the simulator. I even found a few bugs in the app and the bb 10 sdk but that's another topic. The question is how to fix the error I mentioned above, while having in mind that the project does build correctly and does run in the simulator, just not the AIR desktop debugger.

 

Just to test I created my own simple app, put a bb 10 sdk list component there with some data and I tested it in the AIR desktop debugger and it did work. So I am not sure what's the problem with the Weather Guesser app.

 

Anyone?

Please use plain text.
Developer
jtegen
Posts: 6,145
Registered: ‎10-27-2010
My Carrier: AT&T

Re: Blackberry 10 debug on desktop in Flash Builder fails

Sounds like it might be crashing before it connects to the debugger. Are you calling anything that might reside in the device ANE?
Please use plain text.
New Contributor
fm_flame
Posts: 5
Registered: ‎10-12-2012
My Carrier: Developer

Re: Blackberry 10 debug on desktop in Flash Builder fails

QNXSkins.ane is the only ANE that my package explorer says it is actually used inside this project, the other three anes are not. I don't really know what and how is used or called from it since I am trying to run this sample app which is not mine - so i don't know how ANEs are used exactly yet. I only know that even though I comment out everything from the main app file and try to run it - nothing is used or called and it still gives me this error. The same configuration runs with my AIRHelloWorld app. The only difference I can see right now is the different packaging - the main app file AIRHelloWord.as is in src of the project and the WeatherGuesser main file is in src/qnx/samples/weatherguesser.

Please use plain text.
Developer
jtegen
Posts: 6,145
Registered: ‎10-27-2010
My Carrier: AT&T

Re: Blackberry 10 debug on desktop in Flash Builder fails

Do you have it configured to self discover the debugger, or are you setting the IP for the debugger? If so, are you using "localhost" instead of the IP?

Does the app run if you dont try to debug?
Please use plain text.
New Contributor
fm_flame
Posts: 5
Registered: ‎10-12-2012
My Carrier: Developer

Re: Blackberry 10 debug on desktop in Flash Builder fails

Hi, what you are talking about is debugging on the simulator. I've already mentioned that it works, it autodiscovers it runs and debugs successfully there. And I want the app to work in Flash Builder's AIR desktop debugger. I set it to use the Blackberry 10 dev alpha device configuration and an error is shown. I just tried running it instead of debugging it as you requested - it doesn't work -> Process terminated unexpectedly. The rest of the message is the same as the error with the debugger.

Please use plain text.
Developer
jtegen
Posts: 6,145
Registered: ‎10-27-2010
My Carrier: AT&T

Re: Blackberry 10 debug on desktop in Flash Builder fails

I think there is something with the SDK that it has to run in the QNX OS and cannot run outside of that environment. Under PlayBook, I can run on Windows (regular and debug) without issue. But under BB10, I've never been able to get that to work and I believe it has to do with the ANEs. I think the skin ANE has to look at the device DPI (or similar) to determine which assets to use for the controls.

This does slow things down a lot. Currently, I try to do a lot in libraries and drivers that can be run as an desktop AIR app and then use those libraries in BB10. That cuts down a lot of development time.
Please use plain text.
New Contributor
fm_flame
Posts: 5
Registered: ‎10-12-2012
My Carrier: Developer

Re: Blackberry 10 debug on desktop in Flash Builder fails

So if you are correct about this, I guess there is no way to test the application on the desktop? Is there some way to make this work, maybe ANES can be downloaded from somewhere as libraries to use for development and when in production to switch to the ANES? I'm not sure if I make any sense but my point is - is there a way to debug on the AIR desktop with ANES in use?

Please use plain text.
Developer
jtegen
Posts: 6,145
Registered: ‎10-27-2010
My Carrier: AT&T

Re: Blackberry 10 debug on desktop in Flash Builder fails

You could open up the ANE (zip format) to see what is inside. We would have to get the cooperation of RIM to have a desktop version of the ANE to support this. At this point, I doubt they would due to limited resources.
Please use plain text.