有没有人知道一个好的初学者教程在C ++中使用调试器?
Does anyone know a good beginners tutorial for using the debugger in C++?
我觉得我错过了很多。我知道如何一步通过代码,看看局部变量(虽然经常,甚至这会导致我的问题,似乎有一个自己的头脑有时!)。
I feel as if I am missing out on a lot. I know how to step through the code and look at the local variables (although often even this causes me problems, it seems to have a mind of its own sometimes!).
其他所有事情(调用堆栈,运行线程等)意味着对我没什么,我还没有一个回溯迹象我可以解密(不同于分段的示例问题错误,当后面的跟踪总是指向的某些函数的代码!)。基本上我没有更好的只是插入cout 语句,这通常是我最后做的:)
Everything else (call stack, running threads etc.) means nothing to me and I have yet to have a back trace that I can decipher (unlike in the sample problems for segmentation faults when the back trace always points to some function in your code!). Basically I am no better off just inserting cout statements which is normally what I end up doing :)
我使用Code :: Blocks,但愿意临时更改IDE 来学习调试器如果有一个非常好的教程。 I 的教程只是解释了如何遍历我已经知道的代码,或者他们是真正全面的解释一切,这只是压倒了我的小脑,而不是真的
I am using Code::Blocks but would be willing to temporarily change IDE to learn the debugger if there was a really nice tutorial. The tutorials that I have found either just explain how to step through the code which I already know or they are really comprehensive explaining EVERYTHING, which is just overwhelming for my little brain and not really necessary at this stage.
推荐答案我建议以下教程,用于Visual Studio 2010开始。它包含有关调用堆栈,调试多线程程序和可能需要的其他事情。 Visual Studio 2010的快速版是免费的,AFAIK的调试器具有与商业版本完全相同的功能。
I'd suggest the following tutorial for Visual Studio 2010 to start with. It contains information about call stack, debugging multithreaded program and other things which may be needed. The express edition of Visual Studio 2010 is available for free and AFAIK its debugger has precisely the same features as commercial editions.
更多推荐
良好的调试器教程为初学者
发布评论