Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
12-13-2012 09:45 AM
I'm trying to debug an application and I want to use GDB remotely [ie no IDE, just through command line]. I'm developing on Linux with Qt/QML for the Playbook. There's some documentation , and an older forum thread , but these are kind of over my head. Given a bar file "abc.bar", could anyone provide step by step instructions as to how I can debug it remotely as it executes on the device?
Solved! Go to Solution.
12-14-2012 02:52 PM - edited 12-14-2012 03:41 PM
I have the following in a Makefile:
[Assuming you haven't deployed your program]
$ blackberry-debugtokenrequest -storepass <Keystore Password> -devicepin <PIN><YourApplication>_tok.bar
$ blackberry-deploy -package <YourApplication>.bar -installDebugToken <YourApplication>_tok.bar <Device IP Address> -password <Device Password>
$ blackberry-deploy -debugNative -launchApp -device <Device IP Address> -password <Device Password> <YourApplication>.bar | grep result:: | sed 's/result:://' > pid
[Connecting to the device and running GDB]
$ blackberry-connect <Device IP Address> -password <Device Password> -sshPublicKey ~/.rim/bbt_id_rsa.pub > /dev/null &
$ echo target qnx <Device IP Address>:8000 > gdbrun
$ echo sym <Executable Path> >> gdbrun
$ printf "attach " >> gdbrun
$ cat pid >> gdbrun
$ ntoarm-gdb -command=gdbrun
I only have a PlayBook, so if you also plan on using this for BB10 later I'm not sure if it will work. The whole project is hosted at: https://hg.interactivelaboratories.com/playbook_te