有很多关于使用gdb调试Python的教程,以下是其中一些最好的:
- https://wiki.python.org/moin/DebuggingWithGdb
- https://stripe.com/blog/exploring-python-using-gdb
- http://scipy-lectures.github.io/advanced/debugging/#debugging-segmentation-faults-using-gdb
然而,所有这些教程都是针对Linux操作系统的。在OSX上安装所有必需的扩展包是否可行?