为什么我需要 root 权限才能运行 GDB?
当我从命令行启动 GDB 时,没有任何问题。但是,当我开始从 NetBeans (C++) 调试程序时,我收到以下消息:
“在“开发人员工具”组中键入用户的名称和密码,以允许开发人员工具访问进行更改。” >
我的用户已经在“开发人员工具”组中,但这一事实似乎被忽略了。
使用 root 密码它可以让我进行调试,但我不会使用 root 帐户进行调试!
我检查了GDB可执行文件和路径,它们都授予每个人可执行权限。
有什么想法吗? 谢谢你!
平台:
MacOS X 10.6.6
NetBeans 6.9.1
海湾合作委员会 4.2
广发银行6.3.50-20050815
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我相信您会在这里找到答案:停止“开发者工具访问需要控制另一个进程才能继续调试”警报
基本上,您可以重新安装 Xcode 或修复授权数据库。
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.
不,您不需要 root 权限来运行 GDB。您的软件需要以 root 身份运行吗?如果您的软件以 root 身份运行,GDB 也需要以 root 身份运行。
如果在命令行上运行 GDB 会发生什么?
No, you shouldn't need root privileges to run GDB. Does your software need to run as root? If your software runs as root GDB will also need to be run as root.
What happens if you run GDB on the command line?