Code::Blocks + CDB 如何调试wxString? Topic is solved

这是wxWidgets论坛的中文版本。在这里,您可以用您的母语汉语讨论上面任一子论坛所涉及的所有关于wxWidgets的话题。欢迎大家参与到对有价值的帖子的中英互译工作中来!
Post Reply
Loaden
I live to help wx-kind
I live to help wx-kind
Posts: 177
Joined: Tue Feb 19, 2008 10:21 am
Location: China

Code::Blocks + CDB 如何调试wxString?

Post by Loaden »

看到了一篇关于GDB的帖子:http://forums.wxwidgets.org/viewtopic.php?p=80178#80178
但我使用VC2003编译器,我按上面的帖子所给的方法试了,但还是无法显示wxString变量的值。
我尝试Memory dump窗口,但输入相应地址,go后无反应。
我用的是CB4996SVN版本。
而且,share\CodeBlocks\scripts下并没有cdb相关的script文件。

请大家帮个忙,谢谢!
Utensil
Moderator
Moderator
Posts: 423
Joined: Sun Feb 03, 2008 11:38 am
Location: China

Post by Utensil »

目前C::B还没有支持CDB的脚本。这需要熟悉CDB命令与输出形式的人来用Squrril写脚本。

参见http://wiki.codeblocks.org/index.php?ti ... er_scripts

你可以使用VS来做调试,再用Visual Studio Debugger Visualizer来为wxString作专门定制。

这个可能得靠你自己了~

-Utensil
In fascination of creating worlds by words, and in pursuit of words behind the world.

On Github: http://utensil.github.com
Technical Blog in Chinese: http://utensil.iteye.com/
Loaden
I live to help wx-kind
I live to help wx-kind
Posts: 177
Joined: Tue Feb 19, 2008 10:21 am
Location: China

Post by Loaden »

我没有深入研究过CDB,根本不懂得如何写script。CB也是刚接触,以前主要用EditPlus写代码。VC调试器不想用,因为VS2003不能在Vista下运行,而我又不想使用VS2005,最主要的:那对我来说太庞大了...
谢谢!
期待有CB官方能支持CDB的script,如果在我会之前还没有官方的解决方案,我会将解决方法帖出来。
Post Reply