Hi! On Thu, 2017-02-02 at 21:55 +0000, Sérgio Basto wrote: > I'd like use this gdb python [1] , but can't put it work on Fedora > 24, > last problems mentioned are about Fedora 13 , can someone help me on > pointing how I could use New_gdb_commands [2] ?
To use command like 'py-bt', 'py-list', etc. with GDB and Python 3, do the following: 1) Install GDB and python3-debuginfo: sudo dnf install gdb sudo dnf debuginfo-install python3-debuginfo 2) Run your Python 3 program and find out its PID 3) Attach to your Python 3 program with GDB: gdb python3 <pid-of-your-program> NOTE: You'll probably get the following warning the first time: warning: the SELinux boolean 'deny_ptrace' is enabled, you can disable this process attach protection by: (gdb) shell sudo setsebool deny_ptrace=0 ptrace: Permission denied. Execute the suggested command to disable 'deny_ptrace'. 4) Use commands described in [2] or https://docs.python.org/devguide/gd b.html > [1] https://fedoraproject.org/wiki/Features/EasierPythonDebugging#Cur > rent_state-of-the-art_for_debugging_CPython_backtraces > > [2] https://fedoraproject.org/wiki/Features/EasierPythonDebugging#New > _gdb_commands Regards, Tadej _______________________________________________ python-devel mailing list -- python-devel@lists.fedoraproject.org To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org