Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#42 Debugging array provides a wrong result

None
fixed
orwelldevcpp
debug (8)
2 days ago
2013-01-04
SXKDZ
No

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++ 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

Discussion

  • 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 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.

       
  • orwelldevcpp
    orwelldevcpp
    2013-02-07

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

     
  • orwelldevcpp
    orwelldevcpp
    2013-02-07

    Progress!

     
    Attachments
    • Matei Dragu
      Matei Dragu
      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

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

       
  • orwelldevcpp
    orwelldevcpp
    2013-02-09

    • status: accepted --> fixed