C codeblocks and debugging

Hi all,

hope, somebody can help.

I've installed Codeblocks for refreshing my noob C skills. As compiler I set clang and for debugging gdb.

Compiling works just fine but when trying to debug just a command line pops up in the debugging window. As root debugging works.

Has it to do with my strict security settings in FreeBSD 13.1?

Code:
# $FreeBSD$
#
#  This file is read when going to multi-user and its contents piped thru
#  ``sysctl'' to adjust kernel values.  ``man 5 sysctl.conf'' for details.
#

# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0
security.bsd.see_other_uids=0
security.bsd.see_other_gids=0
security.bsd.see_jail_proc=0
security.bsd.unprivileged_read_msgbuf=0
security.bsd.unprivileged_proc_debug=0
kern.randompid=1
hw.kbd.keymap_restrict_change=4
kern.sugid_coredump=0
net.inet.icmp.bmcastecho=0
net.inet.icmp.drop_redirect=1
net.inet.ip.check_interface=1
net.inet.ip.process_options=0
net.inet.ip.random_id=1
net.inet.ip.redirect=0
net.inet.tcp.always_keepalive=0
net.inet.tcp.blackhole=2
net.inet.tcp.drop_synfin=1
net.inet.tcp.icmp_may_rst=0
net.inet.tcp.nolocaltimewait=1
net.inet.tcp.path_mtu_discovery=0
net.inet.udp.blackhole=1
net.inet6.icmp6.rediraccept=0
net.inet6.ip6.redirect=0
security.bsd.hardlink_check_gid=1
security.bsd.hardlink_check_uid=1

Any hint is greatly appreciated.
 
It's best to set:
security.bsd.unprivileged_proc_debug: Unprivileged processes may use process debugging facilities
Code:
security.bsd.unprivileged_proc_debug=1
 
Back
Top