本文介绍了调试C ++代码与模板和STL与gdb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



您是否使用任何技巧让调试更简单?也许一些Python脚本?或者您是否满意目前在gdb(ver 6.x,尚未尝试7.x)的方式?



谢谢。

解决方案

我假设你的意思是更好地可视化STL代码(而不是,它提供安全的迭代器和额外的运行时检查)。我不知道你是否看过这些帖子:













另外,尽可能尝试使用KDevelop / DDD - 他们有帮助。


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? Perhaps some Python scripts? Or are you satisfied the way it is at present in gdb (ver 6.x, haven't tried 7.x yet)?

Thanks.

解决方案

I am assuming that you mean visualizing STL code better (and not the debug mode which give safe iterators and additional runtime checks). I am not sure if you have looked at these posts:

Also, try using KDevelop/DDD if possible -- they do help.

这篇关于调试C ++代码与模板和STL与gdb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-13 15:56
查看更多