Try to install pytorch in develop mode:
pip uninstall torch
pip uninstall torch
pip uninstall torch # yes, we're just trying to get rid of your previous installations
MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ python setup.py build develop
In develop mode, you can add (python) breakpoints the code under the pytorch repo and those will be triggered.