11-07-2013 05:32 AM
I need to sign my app with RSA keys in order to work. So I generate the signed .bar exporting the project with Device-Debug configuration and then I install it on the device.
The question is: How can I debug my app ?
Obviously I can't just run the app in debug mode because in this way the app doesn't run as signed bar.
Is there a way to attach the app installed with the bar to a debugger ?
Thanks in advance.
Solved! Go to Solution.
11-07-2013 09:44 AM - edited 11-07-2013 09:45 AM
Another way to debug an app is to use a Postmortem Debugging configuration which need a .core file generated when the app has crashed.
I know that when an app crash there must be a .core file in the logs folder of the app Sandbox.
In my case there is no .core file in this folder.
The question now is why ?
11-07-2013 10:37 AM
When the app is built in release mode debugging is disabled. Core files would be generated, but they are generated in the app's release mode sandbox (not the one you can see using the Target File System Navigator). The only way to gain access them is through your app itself (the next time the app launches, it has access to its log directory in its sandbox).
11-11-2013 06:04 AM
How can I get the path of the folder where the .core file is placed ?
For non-signed app is /accounts/1000/appdata but I can't figure out what is the path for signed one.
11-11-2013 09:18 AM
You won't be able to browse to it directly. The application will need to upload it somewhere or copy it to a public area like the shared folders.
11-11-2013 09:26 AM
Ok but to upload or copy this file I need the absolute path of the .core file and I don't know where the file is actually memorized when the app is in not in Development-Mode that is a signed app.
11-11-2013 09:34 AM
Ahh ok, I understand what you mean now. This line will return the directory the application is installed and running from.
QString path = QDir::current().absoluteFilePath();
11-11-2013 10:12 AM
The .core files are in the logs directory within your applications home directory. So add a "logs" to the current path you get back.