------------code for testing--------------------------
int a[10], sum = 0;
int main(void) {
for (int i = 0; i <= 9; sum += a[i ++]) { scanf("%d", &a[i]); } printf("%d\n", sum); return 0;
[5.3.0.5 RC5] Debuging array's bug still remains. This time, I watch array 'a', and break at line 7. When debugging is start, debug window on the left add a column said 'a = Execute to evaluate' in red, then a 'Runtime error' window showed.
---------------------Bug Track Information------------
Application version: 5.3.0.5
Platform : Windows NT
OS version : version 6.1 (build 7600)
Additional info:
Computer name : SXKDZ-SEVER
The following error occured in version 5.3.0.5:
Access violation at address 0024DB25 in module 'devcpp.exe'. Read of address 00000008 (at address 0x0024DB25)
Please include a description of what you were doing before the error occured:
0027AC4D (00179C4D): TEAnalyzer.EHandler (ExceptionsAnalyzerFrm - 228)
0024DB25 (0014CB25): TMainForm.DebugTreeAdvancedCustomDrawItem (main - 6250)
0024DB25 (0014CB25): TMainForm.DebugTreeAdvancedCustomDrawItem (main - 6250)
0024DB25 (0014CB25): TMainForm.DebugTreeAdvancedCustomDrawItem (main - 6250)
001AFA30 (000AEA30): TSynEditMark.GetIsBookmark (SynEditMiscClasses - 1584)
0024EEAC (0014DEAC): TDebugger.DeleteWatchVars (debugger - 454)
0024EEC2 (0014DEC2): TDebugger.DeleteWatchVars (debugger - 454)
002448F7 (001438F7): TMainForm.PrepareDebugger (main - 3036)
00244C62 (00143C62): TMainForm.actDebugExecute (main - 3123)
00244F3A (00143F3A): TMainForm.actDebugExecute (main - 3157)
0027DB45 (0017CB45): (devcpp - 166)
0027DB60 (0017CB60): (devcpp - 166)
0027D7A8 (0017C7A8): (devcpp - 105)
0027D7A8 (0017C7A8): (devcpp - 105)
By clicking 'Continue', debugging window increased a line '0,0,0,0,0,0,0,0,0' then the runtime error remained. Clicking 'Continue' again and again, the column will increase. But this time the increased line provided the right information that the array 'a' had.
In my opinion, if the user wants to watch the same array, the column won't increase to show the latest watch information. The debugger should update the array's information in the same column. If not, when the user click 'Next Line' for 200 times, the debug window will be hard to see and understand.
Please keep using #42, will remove this one (I've saved the contents). Thank you for the input though.