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?
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?
First, you need to make your system partition writable by doing 1:
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:
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.