https://www.youtube.com/watch?v=6ML045wioZw
I made a video about it.. I mean the result is correct.. But the debug is showing wrong information.. This is rather hard to check my code step by step when i am solving a difficult problem..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is a very interesting bug. I was able to reproduce it using Code::Blocks 17.12 on Windows 10 Version 1709 using the same code that 练亮斌 showed us. I wonder if this might just be how C++ works and it's me not fully understanding whats going on here. Or perhaps there really is a bug in the debugger in Code::Blocks. Maybe trying different types of arrays and initializing them with different values will lead to more information about this behavior.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Reproduced
I have the same problem.. And not only with arrays.. String also are "bugged" in code::blocks' debugger..And i can not find any solution to this..
Radu Flocea: What version are you using? Can you post the full debugger log? Can you post minimal code sample?
https://www.youtube.com/watch?v=6ML045wioZw
I made a video about it.. I mean the result is correct.. But the debug is showing wrong information.. This is rather hard to check my code step by step when i am solving a difficult problem..
This issue is not related to the one discussed in this ticket as far as I can see.
This is a very interesting bug. I was able to reproduce it using Code::Blocks 17.12 on Windows 10 Version 1709 using the same code that 练亮斌 showed us. I wonder if this might just be how C++ works and it's me not fully understanding whats going on here. Or perhaps there really is a bug in the debugger in Code::Blocks. Maybe trying different types of arrays and initializing them with different values will lead to more information about this behavior.
No, this is a feature of gdb which tries to present the information in a pleasant way for a console...