Foreach -Parallel Breakpoints?

Aperta
#1,689 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
csharp, powershell
Ambito
devtools

Direzione di ricerca

Non sono indicati file, test o punti di ingresso. Per prima cosa è necessario determinare dove Foreach -Parallel crea e gestisce i runspaces e come vengono gestiti gli stati Breakpoint e InBreakpoint. Per considerare il lavoro completato sarebbe necessaria una progettazione definita che supporti i breakpoint all'interno dei loop paralleli, coordini gli altri runspaces e preservi il comportamento esistente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Area-Debugging Issue-Discussion

Just thought I'd throw this discussion point out there.

If we know by the AST that someone is doing foreach -parallel, we are going to know the behavior. Can we hook into those created runspaces and drop breakpoints there, and then maybe monitor for them to go into InBreakpoint state and trigger the debugger there?

The net effect would be that users could put breakpoints in a Foreach -Parallel loop and expect it to break there for troubleshooting parallel runs, rather than the current procedure of removing -Parallel and any $USING references in order to debug.

Probably not feasible, lots of issues:

  1. How do we pause the other runspaces at the same time
  2. Have to fetch all the state and ensure it works the same thru all the existing tests
  3. etc.
Lingua principale
C#
Stelle
767
Fork
266
Merge medio
3g 16h
PR unite (30g)
1

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PowerShell/PowerShellEditorServices

Tutte le issue di PowerShell/PowerShellEditorServices

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.