How to debug underlying C++ library from Python interface?
问题 I am using apollocaffe and Reinspect. Apollocaffe is in c++ library and Reinspect is in python. Reinspect called apis from apollocaffe. I like to debug those apis inside apollocaffe. From python code, I used python -m pdb train.py But I can't go inside api from apollocaffe. I do like cout << "test" << endl; in apollocaffe . But nothing is printed to console. How can I debug c++ code, at least if I can print, it will be great. 回答1: If you are interested to debug just the C++ part, you can just