QtCreator in Docker; I couldnt debug Error disabling address space randomization: Operation not permitted
Solved
General and Desktop
-
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 ?
Best
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.
Regards