12-13-2012 09:45 AM
Hiya,
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 [1], and an older forum thread [2], 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?
Regards,
Preet
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
12-17-2012 01:36 PM
This is exactly what I was looking for, thanks!
01-24-2013 06:59 PM
Sorry about bumping this thread, I couldn't edit my post.
Here's the new URL where the project is hosted: