Skip to content

Could not get threads: TypeError: threads.map is not a function #460

@rsubtil

Description

@rsubtil

When attempting to debug a Godot build, I get this warning immediately when a debug session starts:

Image

But thread information does eventually load without issue, and debugging functionality seems to work without issue either (pausing, resuming, stepping, etc...)

Image

launch.json:

{
	"version": "0.2.0",
	"configurations": [
		{
			"name": "Debug",
			"type": "lldb-mi",
			"request": "launch",
			"target": "./bin/godot.linuxbsd.editor.dev.x86_64.llvm",
			"arguments": "-e --path <...> --display-server wayland",
			"cwd": "${workspaceRoot}",
			"valuesFormatting": "parseText"
		}
	]
}

I can only find a single code reference where this is used:

return threads.map(element => {
const ret: Thread = {
id: parseInt(MINode.valueOf(element, "id")),
targetId: MINode.valueOf(element, "target-id"),
name: MINode.valueOf(element, "name") || MINode.valueOf(element, "details")
};

Let me know of any further info necessary from my side. I can't find any extension logs on VSCode's "Output" panel.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions