Skip to content

Breakpoints hit then debugger seems to be detached #291

@Universal-Invariant

Description

@Universal-Invariant

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions