适合初学者的良好调试器教程

Good debugger tutorial for beginners(适合初学者的良好调试器教程)
本文介绍了适合初学者的良好调试器教程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

有谁知道一个好的初学者教程在 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 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.

这篇关于适合初学者的良好调试器教程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

How do compilers treat variable length arrays(编译器如何处理变长数组)
Deduce template argument from std::function call signature(从 std::function 调用签名推导出模板参数)
check if member exists using enable_if(使用 enable_if 检查成员是否存在)
Standard Library Containers with additional optional template parameters?(具有附加可选模板参数的标准库容器?)
Uses of a C++ Arithmetic Promotion Header(C++ 算术提升标头的使用)
Parameter pack must be at the end of the parameter list... When and why?(参数包必须位于参数列表的末尾...何时以及为什么?)