How to debug in Codeblocks?

后端 未结 2 1454
不思量自难忘°
不思量自难忘° 2020-12-11 18:29

I just finished coding my program but am facing a few logic errors. I want to debug the program.

I am using Codeblocks, so what do I need to do to view the status an

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-11 18:59

    First set a breakpoint at the beginning of your code or codeblocks won't go line by line.

    When you run your program with debug mode (check the menus) you should get some toolbars with controls to advance lines and view variables. You can you the value of a variable by hovering over it in your code.

提交回复
热议问题