我不确定如何调试(大概是使用GDB)SWIG接口背后的Python代码.
我可以用ipdb看的Tensorflow的Python代码的执行一直到SWIG包装(如tf_session.TF_Run中session.py),但我想调试SWIG接口后面的C++代码.
ipdb
tf_session.TF_Run
session.py
据推测我构建了Tensorflow bazel build --config debug,但是gdb当从Python接口调用时,如何附加到生成的代码?
bazel build --config debug
gdb
debugging tensorflow
debugging ×1
tensorflow ×1