# Debugging in VS Code

A breakpoint pauses a script on a line in VS Code, so you can look at every variable, step through it one line at a time with F10, and watch an expression until a value surprises you; Set-PSBreakpoint does the same at the prompt.

![Cheat sheet for the lesson Debugging in VS Code: A breakpoint pauses a script on a line in VS Code, so you can look at every variable, step through it one line at a time with F10, and watch an expression until a value surprises you; Set-PSBreakpoint does the same at the prompt.](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/7d2dec6991ff4a9dbaf2370f007ed707.webp)

- Category: PowerShell
- Level: Journeyman
- Tags: breakpoint, Debugger, powershell, set-psbreakpoint, VS Code
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/powershell-debugging-in-vs-code-cheat-sheet
