Menu

#329 Debuger bug

Undefined
open
Debugger (27)
Bug_Report
2018-03-26
2016-04-08
练亮斌
No

Version: Release 16.01 rev 10702.
C/C++ debuger bug,wrong index on array when something repeating.
See the picture on attachment.

1 Attachments

Discussion

  • Teodor Petrov

    Teodor Petrov - 2016-04-08
    • labels: Debugger, Array, Index --> Debugger
    • assigned_to: Teodor Petrov
    • Milestone: Release_xx.yy --> Undefined
     
  • Teodor Petrov

    Teodor Petrov - 2016-04-08

    Reproduced

     
  • Radu Flocea

    Radu Flocea - 2016-06-06

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

     
  • Teodor Petrov

    Teodor Petrov - 2016-06-06

    Radu Flocea: What version are you using? Can you post the full debugger log? Can you post minimal code sample?

     
    • Radu Flocea

      Radu Flocea - 2016-06-06

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

       
      • Teodor Petrov

        Teodor Petrov - 2016-06-06

        This issue is not related to the one discussed in this ticket as far as I can see.

         
  • Adam Kessler

    Adam Kessler - 2018-03-26

    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.

     
    • Teodor Petrov

      Teodor Petrov - 2018-03-26

      No, this is a feature of gdb which tries to present the information in a pleasant way for a console...

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.