PowerShell / PowerShell/PowerShellEditorServices

Improve Constrained Runspace Debug Experience

Offen
#2,294 0 Kommentare 1 Reaktion 2 zugewiesene Personen Auf GitHub ansehen

@JustinGrote arbeitet bereits daran.

Seit 03.6.2026.

  • #2295 von @copilot-swe-agent — offen
Area-Debugging Issue-Enhancement
Vorherrschende Sprache
C#
Sterne
767
Forks
266
Ø Merge
3 T. 16 Std.
Gemergte PRs (30 T.)
1

Beschreibung

If you start a debug in a constrained runspace, wait-debugger will silently be skipped and cause the debugger to skip breakpoints, leading to a confusing user experience.

If when a powershell launch config is started, we should check the runspace if constrained mode is enabled. If it is, we should check if all the powershell commands we use for DAP like get-variable, wait-debugger, get-psrunspace are available. If any are not available, we should stop the debug session and present a dialog saying "Cannot start debugging because you are running PowerShell in a constrained language mode that does not have the required debug commands available. Please contact your administrator to add the debug commands to your constrained runspace."

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.