疑问:如何自定义Codeblock C ++中的调试选项以及调试时需要考虑的事项 [英] Doubt: How to customise Debug options in codeblock C++ and what things to take into account when debugging
问题描述
我想问一些与GCC / G ++的Codeblocks IDE有关的事情:
1)我想知道是否有任何问题良好的教程或网络解释如何利用gcc的调试选项。我的意思是,我的意图是,当我使用'debug'构建而不是'release'构建时,我想要例如,通过控制台,它向我显示我在代码中放置的cout或其他函数调用。 br />
但是当我想构建'release'模式时,我不想编译该代码。有没有办法完成我的意思?我知道自从我在其他地方看到它或者它已经被评论过了。
2)我应该考虑哪些其他的东西进行调试?例如,用c ++相关的类来调试?还是第三方图书馆?
谢谢。
Hi, there are a few things I like to ask related to Codeblocks IDE with GCC/G++:
1) I'd like to know if there's any good tutorial or web explaining how to exploit gcc's debug options. What I mean is, my intention is that when I use the 'debug' build instead of 'release' build, I want for example, that through the console, it shows me cout's or other function call that I put along the code.
But I don't want to compile that code when I want to build in 'release' mode. Is there a way to accomplish what I mean? I know there is since I seen it somewhere else or it has been commented.
2) What other things should I take into account to debug? For example, classes related in c++ to debug? Or third-party libraries?
Thanks.
推荐答案
参见http://www.gnu.org/software/gdb/ [ ^ ]。
这篇关于疑问:如何自定义Codeblock C ++中的调试选项以及调试时需要考虑的事项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!