Using Codeblocks to step through my code

I remember that in Turbo C there was an F8 hotkey that showed step-by-step code execution and also allowed you to see the values โ€‹โ€‹of variables.

Is something similar available for Codeblocks?

+4
source share
1 answer

Code :: blocks provide a debugging function. We can observe the values โ€‹โ€‹of the variables and do it step by step.

  • Create a project
  • Add a breakpoint by right-clicking on the line number where you want and select "Breakpoint".
  • Press the "Debug" button and format the "Debug windows" window, select the clock window.

In the clock window you can see the values โ€‹โ€‹of the variable and for step-by-step execution after using the switch key breakpoint + F7.

My answer may not be clear to you or for more information, you can follow this wiki page on the code http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks

+6
source

Source: https://habr.com/ru/post/1436217/


All Articles