gpt4 book ai didi

c++ - 查看一步步执行

转载 作者:行者123 更新时间:2023-11-28 03:34:44 25 4
gpt4 key购买 nike

我有一个 C++ 代码,但我不太了解它。我是 C++ 初学者,我想知道它是否存在程序或调试器之类的东西,我不知道它会读取代码并解释它。即:

for (i=0; i<n; i++) (let's assume n = 3) the program start and replace
i=0; i<3; i++
i=1; i<3; i++
etc.

基本上,它会向我展示程序中逐步发生的事情以及它如何使用变量。谢谢 (我需要这个才能理解回溯)。

最佳答案

我想 GDB可以做这样的事情。
应该有很多关于如何使用它的教程。

或者您可以使用像 Netbeans 或 Eclipse 这样的 IDE,它们都有针对 C++ 的逐步调试器

关于c++ - 查看一步步执行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11311225/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com