How to start GDB for C++ called from Python?
问题 I need to debug a C++ function that is called from Python code. How to start GDB (or better DDD) in such a way that it debugs the C++ code called from a given Python command line? The given Python command line is: python3 -m e2e.Tests.Libs.HundredEightyOneTest It calls a C++ code that I need to debug. 回答1: My recommendation: recompile your python interpreter from its source code (so it gets compiled with DWARF debug information, practically speaking with GCC invoked as gcc -Wall -O -g ). Once