Vscode debug from python step into c++

I am using vscode to debug pytorch internals in linux, now I want to step in inner c function using debugger.

Here is an vscode extension to debug mix code(python and c++) , however it works fine with small CPython test, but not working with pytorch.

I also try to use this method to debug, but not working.

Question: any solution to fix above question? or any other method to efficiently debug python C++ mix code in vscode?

Extra info: I install pytorch from source using:USE_CUDA=0 REL_WITH_DEB_INFO=1 DEBUG=1 python setup.py build_ext --debug install

2 Likes