How to check the error logs from the qfield application
Since we don’t have steps to run / debug the application , is there any possible way there to check logs
- I’m trying to make some modifications in the Qfield , For that need check error logs
- How & Where we can add print statements
- How we can check error logs with the final output build of applications
Thanks & Regards
Ajith
Imported from GitHub discussion by @ajithandro on 2024-08-02T05:55:06Z
Generally it’s easiest to develop on a desktop system. With the steps from the dev docs it’s possible to get a desktop build. If starting the app in a terminal session, output is visible. On android there is also the logcat command from adb.
Since we don’t have steps to run / debug the application
I’m not sure I understand. Using qtcreator it’s perfectly possible to build, run and debug.
For adding more debug statements, best refer to the qt logging documentation which is quite comprehensive.
Imported from GitHub comment by @m-kuhn on 2024-08-11T08:49:20Z
Hello m-kuhn ,
Thanks for the reply, Tried with the Qt Creator, Checked about importing the existing project process, and saw the reference that you shared https://github.com/opengisch/QField/discussions/4095#discussioncomment-5517598 ,
Imported the project using CMakeLists.txt file and everything got setup and files are displayed but facing an issue like the build configuration is currently disabled in qt creator, Can you help me to move from this?
Thanks
Imported from GitHub comment by @ajithandro on 2024-08-13T15:05:50Z
I have written a bit better documentation Add developer walkthrough for IDE setup by m-kuhn · Pull Request #5573 · opengisch/QField · GitHub can you give that a try, see if it works for you and report back any need for improvements?
Imported from GitHub comment by @m-kuhn on 2024-08-17T07:39:37Z