Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Breakpoints hit then debugger seems to be detached

オープン
#291 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
lua, typescript, vscode
領域
devtools

調査の方向性

提供された Lua スクリプトを emmy_core と VS Code の起動構成を使って開始し、IDE との接続を観察しながら lua test_debug_client.lua で再現します。デバッガーがアタッチされた後のブレークポイントとログポイントの動作を比較します。完了条件は、実行がブレークポイントで一時停止したままになり、ログポイントがスクリプトを継続させるのではなく出力を生成することです。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
755
フォーク
113
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

EmmyLua/VSCode-EmmyLua のほかの issue

EmmyLua/VSCode-EmmyLua の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。