launch.json•953 B
{
	"configurations": [
		{
			"name": "Wrangler",
			"type": "node",
			"request": "attach",
			"port": 9229,
			"cwd": "/",
			"resolveSourceMapLocations": null,
			"attachExistingChildren": false,
			"autoAttachChildProcesses": false,
			"sourceMaps": true // works with or without this line
		},
		{
			"type": "node",
			"request": "launch",
			"name": "Open inspector with Vitest",
			"runtimeExecutable": "npm",
			"runtimeArgs": ["run", "eval:dev"],
			"console": "integratedTerminal",
			"cwd": "${workspaceFolder}/apps/workers-bindings"
		},
		{
			"name": "Attach to Workers Runtime",
			"type": "node",
			"request": "attach",
			"port": 9229,
			"cwd": "/",
			"resolveSourceMapLocations": null,
			"attachExistingChildren": false,
			"autoAttachChildProcesses": false
		}
	],
	"compounds": [
		{
			"name": "Debug Workers tests",
			"configurations": ["Open inspector with Vitest", "Attach to Workers Runtime"],
			"stopAll": true
		}
	]
}