Debugger
Debug a file
Stop your code on a line and look at its values.
The debugger runs one file and stops it where you choose, so you can see what every value is at that moment. It works with Python (.py) and JavaScript or TypeScript run by Node (.js,.mjs, .cjs, .ts).
- Put a red dot on a line: click just left of its line number, or put the cursor on it and press F9. A dot on an empty line moves to the next line with code.
- Start: press ▶ Debug at the bottom of the editor, or F5. Your open files are saved first.
- The program stops at the dot. The line turns yellow, and the drawer under the code shows its values.
- Step through it with the buttons or keys below, or Continue to the next dot.
| F9 | Put a red dot on the cursor’s line, or take it away |
| F5 | Start debugging the open file, or Continue to the next dot |
| F10 | Step over: run this line, stop at the next one |
| F11 | Step into: go inside the function this line calls |
| Shift+F11 | Step out: finish this function, stop where it was called |
| F6 | Pause a program that is running (a loop that never ends, say) |
| Shift+F5 | Stop the program |
Tip No dots at all? Start anyway and press Pause while it runs: it stops wherever it is.
