Ben Chuanlong Du's Blog

It is never too late to learn.

Debug C/C++ Code Using GDB

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. lines use : while functions use ::

  2. use relative path from the executable to implementation files!!!

    b ../../tree.cpp:31 if knot->name()=="GO:0006139"
    
  3. it seems that there is a bug in …