PowerShell / PowerShell/vscode-powershell
Would like a "Debug" configuration to run in external Posh Console, passing params.
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 1.9k
- Forks
- 548
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
PowerGui, rest its soul, had the option to run the script in an external window. I would not expect this to respect breakpoints and whatnot... I just want to be able to run the script in the external window without having to copy/paste or manually run the script.
I have looked at the debug configurations in launch.json, but I can't figure out how to make the script execute in an external posh console.
While VSCode and the PowerShell add-in are an awesome pair, sometimes I need to see what the script will be like when it runs in the real world. This solution would ease that kind of testing.
Proposed technical implementation details (optional)
I think the simplest solution would likely be to support a new launch.json configuration that would pop up an external console window, passing the script and command line arguments. This would require no additional UI elements and could be easily communicated.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit den Debug-Konfigurationen in launch.json und den vorhandenen Debug-Einstiegspunkten der Erweiterung. Verfolge, wie ein Skript und seine Parameter derzeit an den Debugger übergeben werden, und definiere anschließend das Verhalten der externen Posh Console. Als abgeschlossen gilt die Aufgabe, wenn eine Launch-Konfiguration das Skript mit Befehlszeilenparametern in einer externen Konsole ausführt, ohne dass Kopieren/Einfügen erforderlich ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- powershell, typescript, vscode
- Bereich
- developer-experience, tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100