How could I debug pytorch ops with Clion?

Hi, here am I again. I have compiled pytorch from source code with the help of the CONTRIBUTTING.md. And I want to know how can I use Pytorch within C++ source files without Python? And how can I debug this with some kind of IDE like Clion?

For example, I just want to know what happened during two tensors add together. So I can just write a+b (a & b are Tensors), and debug into this operation.

I know this question may seem simple, but happy to have you guys help. Thanks!