Skip to content
  • Home
  • Hour of Code
  • Install
  • Solves
  • About
  • Contact Us

How-To: Debug Your Code

September 12, 2022

Debugging is how programmers make sure that the program does what it’s supposed to do. The step button lets the program run one line at a time. This is very handy because we get to see how the code on each line works. We can track the variable in the program such as the ‘bounce’ variable that has the value of 4 at line 3. To look at the variable at line 14, select line 14. Notice that the ‘move’ variable has the value of 1. We can switch back by selecting line 3 to look at the state of the program on line 3. A program breakpoint can be set on a given line before continuing the program until it reaches that line. Unset the breakpoint and let the program continue until it finishes.

Debugging a program

Post navigation

Previous Post:

Modulo Code is on Product Hunt Upcoming

Next Post:

Solve: Snake Ridge

English badge

Recent Posts

  • Code E.D. is Launched on Itch.io!
  • Modulo Code is Coming to the Hour of Code
  • Nope, You’re Not Playing this Game
  • Let’s Break Down the “Star Flight” Scene
  • To Dot, or Not To Dot

Categories

  • Geek out
  • How-To
  • News
  • Product updates
  • Solves

Recent Comments

    Archives

    • January 2020
    • November 2019
    • October 2019
    • September 2019
    • August 2019
    • June 2019
    • May 2019
    © 2025 Modulo Code