Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Linuxfb plugin platform cannot use gdb to debug QT programs normally
monkey_lqd last edited by
Hardware resources: PC / embedded development version
Operating system: linux
On the Linux operating system, debug the QT program. QT platform plugin I use linuxfb. I use gdb to debug QT programs with UI. (QT console program does not have the following problems)
The debugging steps are as follows:
Step 1: Start the program through gdb
Step 2: After entering gdb, set the program startup parameters
set args -platform linuxfb
Step 3: Start debugging
Step 4: Press ctrl + c to interrupt gdb debugging
At this time, gdb prompts the following information:
[Inferior 1 (process 28879) exited with code 01]
gdb prompt: No stack.
Then enter continue
gdb prompt: The program is not being run.
This is a very strange question. If I set the startup parameters to be set args -platform xcb or set args -platform eglfs. Then the above problems will not occur during the gdb debugging process.
Does anyone know why this is happening?