problem with debug

Asked by Donia Marzougui

Hello

I have a problem with debug.
The compilation was done successfully but when I run the script in Debug mode and tried to do "attach to the process" in kdevelop, I had this error: ptrace; operation not permitted.

Thanks for any help.

D.Marzougui

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Klaus Thoeni (klaus.thoeni) said :
#1

Hi Donia,

you can solve the problem temporarly (for the current session) by opening a
terminal and typing:

echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope

If you want to solve it permanently edit the file
/etc/sysctl.d/10-ptrace.conf (you need to be su, so use e.g. sudo) and set
kernel.yama.ptrace_scope = 0. In this case you only need to do this once.

Cheers,
Klaus

On Wed, 26 Sep 2012 07:15:56 PM Donia Marzougui wrote:
> New question #209604 on Yade:
> https://answers.launchpad.net/yade/+question/209604
>
> Hello
>
> I have a problem with debug.
> The compilation was done successfully but when I run the script in Debug
> mode and tried to do "attach to the process" in kdevelop, I had this
> error: ptrace; operation not permitted.
>
> Thanks for any help.
>
> D.Marzougui

Can you help with this problem?

Provide an answer of your own, or ask Donia Marzougui for more information if necessary.

To post a message you must log in.