Skip to content

help setting up vscode-js-debug #82

@pretentious7

Description

@pretentious7

vscode-js-debug is microsoft's new standard js debugger, it's standard in vs code. I've been trying to set it up, and I have the following config:

lua << EOF
	local dap = require('dap');
	dap.set_log_level('TRACE');
	dap.adapters.node = {
		type = "executable",
		name = "node-debug",
		command = "node",
		args= {"/home/abhishek/.local/share/debuggers/vscode-js-debug/out/src/debugServerMain.js", "45635" }
	}
	dap.configurations.javascript = {
		{
		type = "node",
		request = "launch",
		name = "Launch Program",
		program = "${workspaceFolder}/${file}",
		debugServer = 45635
		}
	}
EOF

when I try and run it, it gives me the following log info. Also, I'm not sure I'm setting the log level correctly, because I don't see any [TRACE] items in the logfile, how do I check what it's set to during runtime?

[ DEBUG ] 2020-12-31T04:50:23Z-0500 ] ...e/nvim/site/pack/pretentious7/start/nvim-dap/lua/dap.lua:1010 ]	"request"	{
  arguments = {
    adapterID = "nvim-dap",
    clientId = "neovim",
    clientname = "neovim",
    columnsStartAt1 = true,
    linesStartAt1 = true,
    locale = "en_IN",
    pathFormat = "path",
    supportsRunInTerminalRequest = true
  },
  command = "initialize",
  seq = 0,
  type = "request"
}

presumably it's just not responding, but how do I go about debugging this? I tested with python's debug adapter and that works fine.

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