Debugger and visualizer
Step through your code in the browser, like in VS Code.
Set a breakpoint, press F5 and step line by line. See every variable, the call stack and objects change as your program runs. Works for Java, Python, C and C++, with nothing to install.
What you get
- Breakpoints in the gutterClick next to a line number to stop there. Press F5 to start debugging from the editor.
- Step over, into, out, run to lineFamiliar debugger controls that stop at any breakpoint met on the way, just like an IDE.
- See variables, stack and objectsEvery step shows the values, the call stack and the objects in memory, and follows the step to the drawing it changed.
- Edit while debuggingChange the code at any time and debug again; Esc stops.
- Full-screen viewSee the whole program, drag the divider between code and drawing, and keep the controls docked at the bottom.
- Four languagesJava, Python, C and C++, each with editor colours and labels that match the language.
How it works
- Step 1Paste or write codeOpen the debugger for your language and write a program.
- Step 2Set breakpointsClick in the gutter next to the lines you want to stop at.
- Step 3Press F5The program runs and stops at the first breakpoint.
- Step 4Step and watchStep over, into or out, and watch variables and objects change.
Great for
- Understanding recursion, loops and pointers by watching them run
- Finding why a program prints the wrong answer
- Learning how objects and references work in Java and Python
- Teachers and mentors explaining code step by step in class
Frequently asked questions
- Which languages does the debugger support?
- Java, Python, C and C++.
- Do I need to install anything?
- No. It runs in the browser; the code runs on MentorNxt’s secure code runner.
- How is this different from an online compiler?
- A compiler runs the whole program and shows the output. The debugger stops at breakpoints and lets you step through each line, showing variables, the stack and objects as they change.
- Can I use it for interview practice?
- Yes. MentorNxt coding problems open in a workspace where you can solve in Java, Python, C or C++ and debug your solution.