Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do I need root privileges to run GDB?

When I start GDB from the command line I have no problems. But when I start debugging a programs from NetBeans (C++), I get this message:

"Type the name and password of a user in the "Developer Tools" group to allow Developer Tools Access to make changes."

My user is already in the "Developer Tools" group, but this fact seems to be ignored.

With the root password it lets me debug, but I would not debug with the root account!

I checked the GDB executable and path, and they all grant executable permissions to everyone.

Any idea? Thank you!

Platform:
MacOS X 10.6.6
NetBeans 6.9.1
GCC 4.2
GDB 6.3.50-20050815

like image 586
Pietro Avatar asked Sep 18 '25 09:09

Pietro


1 Answers

I believe you will find the answer over here: Stop "developer tools access needs to take control of another process for debugging to continue" alert

Basically, you can reinstall Xcode or fix the authorization database.

like image 128
vy32 Avatar answered Sep 20 '25 00:09

vy32