Flatpak을 통해 설치된 Qt 애플리케이션을 디버깅하는 방법

Flatpak을 통해 설치된 Qt 애플리케이션을 디버깅하는 방법

Flatpak을 통해 설치된 QOwnNotes 애플리케이션에 대한 디버깅을 활성화하려고 합니다(이 튜토리얼에 따라:Flatpak 애플리케이션 디버깅).

앱 자체를 설치하고 SDK 및 자체에 대한 부분을 디버깅했습니다.

$ flatpak install flathub org.qownnotes.QOwnNotes
$ flatpak install flathub org.qownnotes.QOwnNotes.Debug
$ flatpak install flathub org.kde.Sdk.Debug//5.14

그런 다음 애플리케이션을 시작합니다.

$ flatpak run --command=sh --devel org.qownnotes.QOwnNotes

다음을 통해 실행하십시오 gdb.

sh-5.0$ gdb /app/bin/QOwnNotes 
GNU gdb (GDB) 8.3.1
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /app/bin/QOwnNotes...
(No debugging symbols found in /app/bin/QOwnNotes)
(gdb) r
Starting program: /app/bin/QOwnNotes 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff27be700 (LWP 9)]
[Detaching after fork from child process 10]

그러나 디버깅 기호를 찾을 수 없습니다.

관련 정보