良好的调试器教程为初学者

编程入门 行业动态 更新时间:2024-10-24 14:26:00
本文介绍了良好的调试器教程为初学者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

更多推荐

良好的调试器教程为初学者

本文发布于:2023-11-07 00:59:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1565122.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:初学者   调试器   教程

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!