【发布时间】:2018-05-25 18:27:44
【问题描述】:
我正在尝试为这个库 (faster rcnn) 调试 Python 后面的 C++ 代码。
我遵循了here的指示。
假设我想在solver.cpp和第188行停止一个断点。
gdb -ex r --args python ./tools/train_faster_rcnn_alt_opt.py --gpu 0 --net_name headhand --weights data/imagenet_models/VGG_CNN_M_1024.v2.caffemodel --imdb headhand_train --cfg experiments/cfgs/config.yml
我按Ctrl + c
然后
gdb python 8504
break solver.cpp:188
然后type c and enter
但永远不要在solver.cpp 中断。如何调试?
【问题讨论】:
标签: python c++ python-2.7 gdb