Can't edit /proc/sys/kernel/yama/ptrace_scope

I can’t debug programs with gdb, because I get error “warning: Could not trace the inferior process.warning: ptrace: Operation not permitted”. One of the solution is to edit /proc/sys/kernel/yama/ptrace_scope , but I can’t - Error writing - invalid argument. Even with root
Edit: I’m trying to edit this file in standalone whonix-workstation qube
Edit2: sudo gdb also doesn’t work

Sorry, but as I understand this article about debugging of hypervisor and quest VMs, while my problem is simpler - I need only to debug user level program in VM using user level gdb

1 Like

Might be whonix-specific, I’d ask on their forum.

Does GDB work on your debian/fedora templates?

1 Like

yes, thank you for the tip. gdb works in fedora template, so it’s whonix-specific problem. I think topic can be closed, since there is no problem with qubes os.