[英]Cannot debug with gdb in ubuntu
每次我想開始調試時,Qt Creator都會引發錯誤。 這是錯誤:
ptrace: Operation not permitted.
Could not attach to the process. Make sure no other debugger traces this process.
Check the settings of
/proc/sys/kernel/yama/ptrace_scope
For more details, see /etc/sysctl.d/10-ptrace.conf
我已經搜索了錯誤消息並獲得了有關內核中的錯誤的一些結果,但是我能夠在命令行中運行gdb
,所以我認為它與內核/ gdb無關。
導致此錯誤的原因是什么?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.