[debug tvm] when i debug tvm, there is no line number information

First i add print(os.getpid()) into python scripts, and then i run it by

python xxx.py

then i use 'gdb attach #pidnumber ’ and make breakpoint. but when gdb halt on breakpoint, it hints me that

single stepping until exit from function _ZN3tvm7codegen11CodeGenLLVM6CreateEPN4llvm13TargetMachineE, which has no line number information.

thres is no line number information when debug. could anyone help me please?

you should rebuild TVM in debug mode first by using following command.

 cmake -DCMAKE_BUILD_TYPE=Debug ../

 make -j4

thank you very much :slight_smile: