PowerShell / PowerShell/vscode-powershell

Inline Breakpoint Support

Open
#4,803 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Enhancement
Dominant language
TypeScript
Stars
1.9k
Forks
547
PR merge metrics
No merged PRs in 30d

Description

Prerequisites
  • I have written a descriptive issue title.
  • I have searched all issues to ensure it has not already been reported.
Summary

Currently PowerShell breakpoints are per-line, but they support columns as well, so we could support inline breakpoints similar to typescript, e.g. have a breakpoint specifically on hi2 but not the whole block

& {"hi";"hi2";"hi3"}

Proposed Design

Wire up the debug setBreakpoint to include column information and tie that to Set-PsBreakpoint -Column.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the debug setBreakpoint path and trace how breakpoint locations are passed to PowerShell. Check how Set-PsBreakpoint -Column is exposed, then verify that a breakpoint on "hi2" in the example targets that column without stopping on the whole block.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell, typescript, vscode
Domain
developer-experience, devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.