Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Breakpoints hit then debugger seems to be detached

Aperta
#291 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
lua, typescript, vscode
Ambito
devtools

Direzione di ricerca

Inizia con lo script Lua fornito usando emmy_core e la configurazione di avvio di VS Code, quindi riproducilo con lua test_debug_client.lua osservando la connessione all’IDE. Confronta il comportamento dei breakpoint e dei logpoint dopo che il debugger si è collegato; il lavoro è completato quando l’esecuzione rimane in pausa su un breakpoint e i logpoint producono output invece di far proseguire lo script.

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

Descrizione

When I launch the debugger pops up and dbg.breakHere() or a BP seems to be hit and I can see information like locals and the breakpoint seems to be hit. But about 1 second later everything disappears and the program continues as if I hit continue or detached the debugger.

I've pretty much followed all the docs.

local dbg = require("emmy_core")

-- Start the TCP debug server
dbg.tcpListen("localhost", 9966)
-- Wait for IDE connection
dbg.waitIDE()
-- Set a strong breakpoint here
dbg.breakHere()
.... code...

and

		{
			"type": "emmylua_new",
			"request": "launch",
			"name": "EmmyLua New Debug",
			"host": "localhost",
			"port": 9966,
			"ext": [
				".lua",
				".lua.txt",
				".lua.bytes"
			],
			"ideConnectDebugger": true,
		},

Also log points do not work so it seems like it is more serious than essentially bypassing breakpoints. E.g.,

lua test_debug_client.lua
[EMMY] version: 1, lua version: 54
Starting script...
Iteration: 1, y = 11
Iteration: 2, y = 12
Iteration: 3, y = 13
Iteration: 4, y = 14
Iteration: 5, y = 15
Script finished.

It will wait until I launch the debugger in vscode and once it runs it will load the code/file in vscode and seem to hit the bp but then stop and the script will continue executing in the console.

Lingua principale
TypeScript
Stelle
753
Fork
113
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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.

Altre issue di EmmyLua/VSCode-EmmyLua

Tutte le issue di EmmyLua/VSCode-EmmyLua

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.