Debuggers are very useful tools for analyzing the execution of programs; they allow you to pause your program while it is running and slowly step through the code line by line to see the flow of execution. You can also print out the values of each variable at each step of your program. The CodeHS Step Debugger is available for Python 3 and Java(main) programs.

Turning on the Debugger

  1. Go to your Account Settings and make sure to switch your Preferred IDE from Original to Abacus

  2. In the upper left corner of of the code editor, open the editor Settings by clicking the gear icon

  3. Turn on the debugger to enter debug mode.

Image showing editor settings and debug mode

Important Functions of the Debugger

The debugger has six available functions available:

Image showing run, step, next, continue, stop, and delete buttons.
  • Run: Run the the program as usual, without the debugging tool

  • Step: Step to the next command to be executed. The next command can be in any file or an external library.

  • Next: Go to the next command in the current file.

  • Continue: Continue running the program until the program finishes or crashes.

  • Stop: Stop running the program

  • Delete: Clear the console

Step-By-Step Tutorials

These tutorials will walk you through every step in using the debugger:

Did this answer your question?