Debugging array provides a wrong result
A free, portable, fast and simple C/C++ IDE
Brought to you by:
orwelldevcpp
When I input this source code:
int a[1000], sum = 0;
int main(void) {
for(int i = 1; i < 10; ++ i) { scanf("%d", &a[i]); sum += a[i]; } printf("%d\n", sum); return 0;
}
and I tried to watch the valve 'a', then the display window only shows 'a = {', the member of this array is missing. BTW, if I watch sum, the value is right.
My Dev-C++ version is Orwell Dev-C++ 5.3.0.4. Please fix this problem.
My environment is Windows 7 x86, MinGW 4.7.0.
My Email is Mr.SXKDZ@GMail.com
Confirmed, will fix in the next version.
It seems the watcher has trouble with the '<repeats x="" times="">' stuff, which is weird.
Please use Evaluate in the mean time.
After using 5.3.0.5 RC1, this issue hasn't fix completely.
1. Click Next Step once, it will trig an access violation:
Access violation at address 0024D555 in module 'devcpp.exe'. Read of address 00000008 (at address 0x0024D555)
2. Click continue, and debug window will increase a column, the user experience will reduce. In my Opinion, Modify the existed column will be better.
FYI, there's a lot of progress being made now. This will be fixed before 5.3.0.5 comes out.
Progress!
Hey there, which theme / font are used in the screenshot above?
Uhm, "Obsidian", in combination with black line highlighting and the "Consolas" font.
Last spam post.
Please torture this version's watch variable functionality if you wish.
Congratulations!
I have checked this data, I think it's accepted.
Thanks.