#42 Debugging array provides a wrong result

debug (9)

When I input this source code:

include <cstdio>

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++ Please fix this problem.
My environment is Windows 7 x86, MinGW 4.7.0.
My Email is Mr.SXKDZ@GMail.com


  • orwelldevcpp

    orwelldevcpp - 2013-01-04
    • status: open --> accepted
    • assigned_to: orwelldevcpp
    • milestone: -->
  • orwelldevcpp

    orwelldevcpp - 2013-01-04

    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.

    • SXKDZ

      SXKDZ - 2013-01-31

      After using 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.

  • orwelldevcpp

    orwelldevcpp - 2013-02-07

    FYI, there's a lot of progress being made now. This will be fixed before comes out.

  • orwelldevcpp

    orwelldevcpp - 2013-02-07


    • Anonymous

      Anonymous - 2013-02-07

      Hey there, which theme / font are used in the screenshot above?

      • orwelldevcpp

        orwelldevcpp - 2013-02-07

        Uhm, "Obsidian", in combination with black line highlighting and the "Consolas" font.

  • orwelldevcpp

    orwelldevcpp - 2013-02-07

    Last spam post.

    Please torture this version's watch variable functionality if you wish.

    • SXKDZ

      SXKDZ - 2013-02-09

      I have checked this data, I think it's accepted.

  • orwelldevcpp

    orwelldevcpp - 2013-02-09
    • status: accepted --> fixed

Log in to post a comment.