There are quite a few tutorials on debugging with gdb for Python. Just to name a few among the best:
- 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
However all of them are targeted for the Linux OS. Is it feasible to install all the extension packages required on OSX ?