The debugger is wired to PowerShell 7’s own debugging API rather than a re-implementation, which is why its behavior matches what your senior people expect from Visual Studio and the ISE. It’s also regression-tested end to end on every release, on video, in a clean Windows Sandbox — the same evidence chain the rest of the product runs through.
Breakpoints are file-and-line facts, so debugging an unsaved buffer prompts you to save first; there’s deliberately no debug-anyway option, because breakpoints against text that matches no file stop on lines you can’t see. At a stop, the Call Stack panel lists frames innermost first, and selecting a frame re-scopes the Watch panel to it. Watch expressions evaluate through the debugger channel in the paused frame, not through the console, so they can’t deadlock the paused pipeline. Break All (Ctrl+B) converts a running script into a stop at its next statement. Disabled breakpoints stay visible but dimmed, and Remove, Enable, and Disable All live on the Debug menu, greyed out when the set is empty.
A breakpoint is a bookmark that says “pause here.” Click in the margin to the left of a line number and a red dot appears. Press F5, and instead of running to the end, the script pauses at that line. Now you can look at your variables in the Watch panel, step one line at a time with F10, and watch what changes. When you’ve seen enough, F5 lets it finish. It’s the difference between reading about what your script did and watching it happen.
| Field | Value |
|---|---|
| Scope | Debugging acts only on the user’s own scripts in their own session |
| Persistence | Breakpoints and debug state live in the session; nothing is written outside the script files the user saves |
| What | Why |
|---|---|
| None beyond the bundled engine | The debugger is the PowerShell 7 engine’s own |
Debugging a file requires that the file on disk match the editor, by design, so what was executed under the debugger is always a saved, identifiable artifact.
Next up: the editor, or back to the wiki index.
PS> Start-Process "https://detentpoint.com/detentshell/download"
# Coming soon — ships once the installer is code-signed
Coming soon. DetentShell launches at $29.99 in the Microsoft Store for its first two weeks. The regular price that follows is not final yet and will be published here first; volume licensing for teams is handled separately.