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.

inside custom component

Adobe AIR Development

Reply
Highlighted
Regular Contributor
Posts: 68
Registered: ‎03-18-2011
My Device: Playbook Developer
My Carrier: none

Debugging on the device

Anyone know how debugging ont he actual device will work? I am still new to teh whole Adobe Air thing... I am hoping we will be able to do variable inspection, step through code, etc... as the app runs on the device -- is this the case? I really am hoping to get away form the code/publish/package/deploy/text/make notes/ repeat.... cycle.

Two apps and counting:
Video Poker: http://appworld.blackberry.com/webstore/content/33870
Classic Slots: http://appworld.blackberry.com/webstore/content/40279
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Debugging on the device

Debugging on the device should work about the same as debugging on the simulator works. The app running in either place can be compiled in debug mode, and connect back to the Flash debugger running on your development computer.

I don't know exactly what tools the debugger makes available to you, but the IDE documentation will surely tell you. There's also the command-line debugger (fdb.exe) which can do many of the same things, though with a cruder interface.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Regular Contributor
Posts: 68
Registered: ‎03-18-2011
My Device: Playbook Developer
My Carrier: none

Re: Debugging on the device

Thanks. Looks like there is a remote debug option in the Flash Pro IDE. Can you give me an dumb person's Guide version of the proper build process to get things going? My first two apps were simple enough that I was able to just debug on the PC with some checks on the sim. 

 

I looked in the publish settings in Flash Pro and see the flag for "Permit Remote Debugging" under the AIR 2.5 Settings. I assume I check that to get it to include the necessary info in the AIR file.

After I publish the Air intermediate file, my build command (using the command line) looks like:


blackberry-airpackager -package classic_slots.bar classic_slots-app.xml classic_slots.swf classic_slots_icon_86.png splash.png blackberry-tablet.xml 

 

and I deploy like so:

 

blackberry-deploy -installApp -device  192.168.XXX.XXX -password XXXXXXXX -package classic_slots.bar

 

What do I need to do to set up the app ont the device to connect back to the debugger on launch?

 

 

Two apps and counting:
Video Poker: http://appworld.blackberry.com/webstore/content/33870
Classic Slots: http://appworld.blackberry.com/webstore/content/40279
Developer
Posts: 144
Registered: ‎12-25-2010
My Device: PlayBook 16GB + Z10 LE
My Carrier: UfonePK

Re: Debugging on the device

 

Hi,

 

I recently revisited Monster Debugger. The latest version is pretty cool. And it's far easier to setup and use than built-in debugger in Flash CS5.


Here's the link: http://demonsterdebugger.com/


Best,


// chall3ng3r //

--
- Our PlayBook Apps: IdeaPad | EasyCrop | Popcornia
- Free Icon Maker for BlackBerry PlayBook developers | 5900+ icons created and counting
- A Kudo is appreciated if you like my post Smiley Happy
- My post soveld the problem? Please click Accept as Solution.
Regular Contributor
Posts: 68
Registered: ‎03-18-2011
My Device: Playbook Developer
My Carrier: none

Re: Debugging on the device

Have you gotten it workingbwith Playbook? I'll definitely check it out.
Two apps and counting:
Video Poker: http://appworld.blackberry.com/webstore/content/33870
Classic Slots: http://appworld.blackberry.com/webstore/content/40279