debugging C++ code with templates and STL with gdb

后端 未结 5 710
渐次进展
渐次进展 2020-12-28 10:29

What do gdb users here think about its capabilities in regards to debugging code with templates and STL?

Do you use any tricks to make the debugging any simpler? Per

5条回答
  •  悲&欢浪女
    2020-12-28 11:07

    My favorite way to use GDB is GDB mode in emacs. You get full visual/source level debugging, thread window, stack window (etc)... Try it out, you won't be disappointed.

    That said, GDB handles debugging of STL containers just fine with no special add ons... Just make sure you're building WITH -g, and without -ON (of any kind)...

提交回复
热议问题