pdb

How to debug underlying C++ library from Python interface?

寵の児 提交于 2021-02-11 13:14:37
问题 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

How to debug underlying C++ library from Python interface?

半城伤御伤魂 提交于 2021-02-11 13:12:05
问题 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

How to debug underlying C++ library from Python interface?

巧了我就是萌 提交于 2021-02-11 13:05:34
问题 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

setting breakpoints with nosetests --pdb option

余生颓废 提交于 2021-02-05 12:38:48
问题 nosetests --pdb let's me halt upon error or failure, but this is too late for my needs. Stepping through code during execution helps me debug where the problem is. However, nosetests are helpful as they allow tests that rely on relative imports (i.e. tests in a package). How can I set breakpoints before the tests are executed? Currently I'm using: python -m pdb /path/to/my/nosetests testfile.py This solution isn't adequate. Nosetests interfere with pdb output, and my keyboard controls (e.g.

setting breakpoints with nosetests --pdb option

…衆ロ難τιáo~ 提交于 2021-02-05 12:38:25
问题 nosetests --pdb let's me halt upon error or failure, but this is too late for my needs. Stepping through code during execution helps me debug where the problem is. However, nosetests are helpful as they allow tests that rely on relative imports (i.e. tests in a package). How can I set breakpoints before the tests are executed? Currently I'm using: python -m pdb /path/to/my/nosetests testfile.py This solution isn't adequate. Nosetests interfere with pdb output, and my keyboard controls (e.g.

setting breakpoints with nosetests --pdb option

泪湿孤枕 提交于 2021-02-05 12:38:10
问题 nosetests --pdb let's me halt upon error or failure, but this is too late for my needs. Stepping through code during execution helps me debug where the problem is. However, nosetests are helpful as they allow tests that rely on relative imports (i.e. tests in a package). How can I set breakpoints before the tests are executed? Currently I'm using: python -m pdb /path/to/my/nosetests testfile.py This solution isn't adequate. Nosetests interfere with pdb output, and my keyboard controls (e.g.

setting breakpoints with nosetests --pdb option

送分小仙女□ 提交于 2021-02-05 12:38:05
问题 nosetests --pdb let's me halt upon error or failure, but this is too late for my needs. Stepping through code during execution helps me debug where the problem is. However, nosetests are helpful as they allow tests that rely on relative imports (i.e. tests in a package). How can I set breakpoints before the tests are executed? Currently I'm using: python -m pdb /path/to/my/nosetests testfile.py This solution isn't adequate. Nosetests interfere with pdb output, and my keyboard controls (e.g.