MacOS – Why can’t I use the GNU Debugger (GDB) programming utility on Mac as a standard user

administratormacos

I can only use the GNU Debugger (GDB) when authenticated as an administrator.

When I launch GDB as a standard user, after giving the GDB command "run", a dialog requests me for a user name and password of a user in the "Developer Tools" group.

The problem is that I already am in the "Developer Tools" group, so I do not know what else to do…

Thank you!

Platform:

  • MacOS X 10.7.1
  • GCC 4.2.1
  • i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
  • GNU gdb 6.3.50-20050815 (Apple version gdb-1705)
  • This GDB was configured as "x86_64-apple-darwin".

Best Answer

Are you positive you are in the Developer Tools group?

Try running this command

sudo dscl . append /Groups/_developer GroupMembership <username>

That should add your user account to the group.