blog

Quick Tip: Debugging BlackBerry on Flash Builder 4

After successful installing Playbook simulator and BlackBerry Air SDK, you may wonder how to deploy your app on simulator. Now you have 2 choices. You can use command line and run something like this:

blackberry-airpackager -package -installApp -launchApp -device 192.168.44.129 MyApp.bar src/MyApp-app.xml -C bin-debug MyApp.swf icons/90x90.png blackberry-tablet.xml

… this command compiles .swf file into .bar file and installs on simulator. If you prefer click-and-deploy solution, just go into folder with your blackberry sdk:

.../sdks/blackberry-tablet-sdk-0.9.1/eclipse_for_FB401

and copy all content into your flash builder / eclipse directory.

.../Adobe/Adobe Flash Builder 4

… now:

restart your flash builder

open some blackberry project

Go into Run/Debug/Other…

you will notice BlackBerry Tablet AIR Application line

right click it to create New

type some Name

browse for Project

select Development mode for Application Deployment Mode

and insert your simulator IP address for Debug Host

This is how your Debug Configuration window should look like:

Now to debug the app on simulator, click debug icon and select the new (blackberry) configuration to run:

… after compilator finishes and installs app on simulator, you can switch Flash Builder into Flash Debug Perspective

I have just figured out, there is almost the same article released by BlackBerry Debug your application in Adobe Flash Builder 4.0

Where to go from here:

can’t find “backberry tabet air application” debug configuration

Installation of Tablet SDK – finished with errors – No Debug Configuration

Flash Builder 4 does not have the “BlackBerry Tablet AIR Application”