Please enable JavaScript to use CodeHS

CodeHS Product Updates

Debug Your Code Line-by-Line!

IDE

May 26, 2021

Easily debug your code with the new CodeHS Step Debugger.

By using the new CodeHS Step Debugger, you can 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 to better understand where you might have a bug.

The CodeHS Debugger is currently available for Python 3 and Java(main) programs.

Here’s how to turn on your CodeHS Step Debugger to get started today!
1. In the upper left corner of the Code Editor, open the editor Settings by clicking the gear icon.
2. Turn on the debugger to enter debug mode.

Questions? Watch these how-to tutorials to learn every step in using the debugger:
- For Java programs, check out Using the Java Debugger: https://codehs.com/tutorial/calvin/using-the-java-debugger
- For Python 3 programs, check out Using the Python Debugger: https://codehs.com/tutorial/calvin/using-the-python-debugger