Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QtCreator in Docker; I couldnt debug Error disabling address space randomization: Operation not permitted
RahibeMeryem last edited by aha_1980
I am trying to use QtCreator in a docker environment to build , run and debug application which is deployed in docker.
When I try to debug my appliction I have below error ? How can I use debugger in docker ?
Error disabling address space randomization: Operation not permitted &"warning: GDB: Failed to set controlling terminal: Inappropriate ioctl for device\n" &"warning: Could not trace the inferior process.\nError: " &"\n" &"warning: ptrace: Operation not permitted\n"
Does this SO topic help you?
For the record: debugging (and also strace) need the CAP_PTRACE capability. The problem was solved by running the container with --privileged.
RahibeMeryem last edited by
yes thanks.. its solved.. Even I searched I didnt find this.