netbeans 6.91 and gdb - attaching to a process run by another user -


i trying debug program run user, using netbeans. can manually @ command line, running sudo gdm , attaching pid.

however, make use of netbeans gui easier/quicker/visual debugging. when select pid list of running processes, error:

gdb failed attach process

when attempt attach manually (i.e. running gdb @ command line - without sudo), 'operation not permitted', know netneans failing attach because of permissioning.

does know how can attach processes being run user?.

btw running on dev machine @ home (ubuntu), security not issue.

have tried running netbeans target user?

you can "sudo -u username netbeans" that, shouldnt have problem attaching process. if target user in computer, suggest ssh x forwarding (ssh -x user@machine).

actually, if target (local) user has no password set, can try changing gdb command "sudo -u username gdb" start debugger user.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -