Qt: The gdb process exited unexpectedly (code 127)
-
06-06-2021 - |
문제
What kinds of problem causes this Message Box with this message: 'The gdb process exited unexpectedly (code 127)' after pressing F5 or Start Debugging? (I run QtCreator not as super user)
when I run QtCreator as Super User I got another message box with this message: The gdb process failed to start. Either the invoked program 'gdb' is missing, or you may have insufficient permissions to invoke the program. No such file or directory
When I run following message in terminal
gdb -ex
I get this error
error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
but I have installed libncurses5 , libncursesw5, libncurses5-dev.
What should I do?
해결책 2
I installed the debian's gdb pachage instead of QtSDK's gdb binary and the my problem was resolved
다른 팁
This message usually raise up when you are checked "run in terminal" in run setting. Go to project tab and unchecked "run in terminal" in order to run program in application output in qt creator.
Or maybe you are calling gdb with bad parameter. Check this by call debugger in standalone without qtcreator.