如何查看数组内容,而在code块调试? [英] How to view contents of an array while debugging in Code Blocks?

查看:278
本文介绍了如何查看数组内容,而在code块调试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是一个愚蠢的问题,我发布这个帖子,谷歌搜索,
现在的问题是,

This is probably a silly question and i am posting this Post-Googling, The question is,

如何查看数组的内容在调试时,所提供的断点在功能上是不是主?

我使用code :: Blocks的13.12版本,我设置在我的样本简单的C ++ code一个破发点,
,我想观察一下用code数组的内容发生变化,但所有我看到的是在监视窗口,的该数组的地址
这是正确的但显示其他整数变量的值,

I am using code::blocks 13.12 version and i set a break point in my sample simple c++ code, and i want to observe how the contents of the array change with the code but all i see is the the address of the array under watch window, It is however displaying the values of other integer variables correctly,

a是一个数组

我忘了提,我正在跟踪数组中的一个函数,而不是在主,我知道,主要通过数组函数的地址被称为(参考我的意思)

I forgot to mention that i am tracking the array in a function and not in main,and i am aware that main passes the address of the array to the function being called(by reference i meant)

我是比较新的$ C $个cblocks,我失去了一些设置或东西吗?

I am relatively new to codeblocks, Am i missing some setting or something?

推荐答案

我使用12.11。我选择数组变量假设,选择观看,在右键菜单中,我可以看到数组中的值。

i am using 12.11. I select the array variable suppose a, choose "watch a" in the right button down menu, and I can see the values in the array a.

这篇关于如何查看数组内容,而在code块调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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