Debugging Strategies

Hi Everyone,

I have recently made my first contribution to pytorch(small bug fix) and am looking to do some more of these in the future.

I was hoping that some of the more experienced pytorch developers might be able to share their debugging techniques/strategies for the C++/CUDA side of things so I can learn and make my life a little easier going forward?

Thanks in advance

Michael