python3 gdb使用教程

https://wiki.python.org/moin/DebuggingWithGdb
https://kouk.surukle.me/2014/09/25/debugging-python-objects-and-fields-with-gdb/
# py-fields
https://gist.github.com/fake-name/9ea90ec8551ee2dc3a758921c3853bec
  1. # tested in Debian
  2. apt install python3-dbg gdb -y
  3. gcore <process pid>
  4. gdb python3 <process pid> or <core dump file>
  1. py-{up|down|}
  2. py-{list|locals|print}
  1. # ext py-fields
  2. # run in gdb
  3. source py-fields.py
  4. py-fields self.<attr>

评论

此博客中的热门博文

Mingw64添加regex库