title: netbeans 6.91 and gdb - attaching to a process run by another user
body: <p>I am trying to debug a program run as another user, using Netbeans. I can do this manually at the command line, by running sudo gdm and then attaching to the pid.</p>
  
  <p>However, I would like to make use of the Netbeans GUI for easier/quicker/visual debugging. When I select the pid from the list of running processes, I get the error:</p>
  
  <p>GDB failed to attach to process</p>
  
  <p>When I attempt to attach manually (i.e. by running gdb at the command line - without sudo), I get an 'Operation not permitted', so I know Netneans is failing to attach because of permissioning.</p>
  
  <p>Does anyone know how I can attach to processes being run by another user?.</p>
  
  <p>BTW I am running all this on my dev machine at home (Ubuntu), so security is not an issue.</p>