microsoft / microsoft/vscode-debugadapter-node

Allow continuing from assertStoppedLocation

Aperta
#174 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

feature-request
Lingua principale
TypeScript
Stelle
306
Fork
90
Merge medio
8h 36m
PR unite (30g)
3

Descrizione

I'm struggling to find a way to assert that the debugger stops on an exception and writes to stderr when continued. Here's what I want to write:

await Promise.all([
	dc.configurationSequence(),
	dc.launch(config),
	dc.assertOutput("stderr", "Test failed. See exception logs above."),
	dc.assertStoppedLocation("exception", {
		line: positionOf("// EXCEPTION").line,
		path: flutterTestBrokenFile.fsPath,
	}),
]);

The problem is, the stderr is only written after the user hits continue. I thought I just chain a .then((_) => dc.continueRequest(...) request onto the end of the the assertStoppedLocation but it needs a threadId which is used inside assertStoppedLocation but not exposed in any way.

Is it possible to add an option to allow assertStoppedLocation to resume (or exposed the thread ID, but that may be tricky since it's returning a StackTrace response which doesn't contain it).

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

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.

Direzione di ricerca

Start with the assertStoppedLocation entry point and the continueRequest call described in the issue, tracing how the thread ID is obtained and whether related test helpers cover continuation. Done means a test can assert the exception stop, resume execution, and then verify the expected stderr output.

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

Valutazione

Stack tecnologico
typescript
Ambito
devtools, testing
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.