Version: unspecified OS: Linux Debugging web cgi's have been a problem for me with newer kernels, as apache runs as root or someone not me, and gdb can no longer access it. Wish is to debug under root, by detecting ptrace error, and asking for root password. If password was already available (from previous session) then using it automagically. Currently I need to run the whole system as root to debug, which is not as good. Reproducible: Didn't try Expected Results: wish fulfilled :)
Do you attach to a process, or do you start a program from inside kdevelop?
This is definitely attach to process. Obviously if you start the process you would be allowed to debug it. The problem occurs when you attach to a process not yours. It would be good to be able to sign in as that process owner, or as root in order to debug it. This security feature was recently added in Linux kernels to stop crackers from attacking to root processes and thereby gaining control of a computer. It's a good idea, except sometimes it isn't a good idea, like when you want to debug the program.
*** This bug has been marked as a duplicate of bug 60165 ***