Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I set up my environment to debug on a Blackberry device?

I'm sorry if I'm asking the wrong thing in stackoverflow, but I've come to my wits end dealing with Blackberry. Documentation, site organization, general levels of support have all come together to the point that I haven't been able to do a whole lot of actual work in this environment.

I currently have the Eclipse environment downloaded from the blackberry developer's area website. I can run the simulator and everything else without issue. What I'm trying to do now is to move from debugging on the simulator to debugging on the device itself. This is an important step for me, but I haven't found a satisfactory way to do it...

What I've found are some posts saying that I should package an ALX (of which I'm still not sure on how to do), and using the BDM to install it. This, however, means I won't be able to use the debugger...

If someone could direct me to a resource that will give me step by step instructions from coding to release of blackberry development, this would be awfully helpful.

Thanks so much!

like image 843
Sam Avatar asked Nov 05 '22 20:11

Sam


1 Answers

Yes, please test your code on a device. Basic stuff works the same between both, but especially when you get into networking, media, etc. the devices are different.

You can debug on your device through Eclipse. I can't provide you with an end-to-end guide on SO, but here's the quick debug guide.

  1. Build (sign if necessary) and load your app onto the device. You can do this with the desktop manager, or with the command-line javaloader tool that comes with the JDE (look in the bin directory), or even OTA (over the air)
  2. After loading, make sure the Desktop Manager is NOT running (it'll interfere with on-device debugging)
  3. From Eclipse, create a new debug configuration, in the Debug Configurations dialog click on BlackBerry Device, and then click on the new configuration icon. Default settings should be fine.
  4. Make sure your device is plugged into your USB port and start your new debug configuration. You'll probably get a lot of prompts about things missing (because actual devices don't have debug info for any built-in stuff, generally) but click through those and you should be fine to debug.
like image 147
Anthony Rizk Avatar answered Nov 15 '22 10:11

Anthony Rizk