良好的调试器教程为初学者 [英] Good debugger tutorial for beginners

查看:118
本文介绍了良好的调试器教程为初学者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆