4

My app works well on desktop but I can't figure out why does it crash on my nexus 7. How can I debug it while it runs on the device?

2
  • How is this different this from your last post?
    – Seth
    Nov 21, 2014 at 23:49
  • @Seth: Viewing outputs from an application is very different from running it inside a debugger. So IMHO both questions are perfectly valid.
    – Cmdr
    May 5, 2015 at 9:02

1 Answer 1

1

First, you need to make your system partition writable by doing 1:

touch /userdata/.writable_image

and rebooting your phone/tablet. Be aware that you cannot install over-the-air (OTA) updates after doing this. Then you need to install gdb:

apt-get install gdb

Finally, when launching the app from Qt Creator like shown here, instead of pressing the "Run" button, press the "Debug" button below. It should then launch the app through gdbserver and show the debugging interface in Qt Creator.

That's the theory. However I didn't get it running. Qt Creator spits out various error dialogs, some saying "Unknown Error", others having no text at all. I'm currently trying to run my application from the command line on my Nexus 4, which is incredibly difficult.

Not the answer you're looking for? Browse other questions tagged .