aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/nvim/lua/theprimeagen/debugger.lua
blob: c9352733268ba13c9c34a43a33e4f8bbf55bfae0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
local dap_install = require("dap-install")
dap_install.config("chrome", {})


local dap = require("dap");
dap.configurations.typescriptreact = { -- change to typescript if needed
    {
        type = "chrome",
        request = "attach",
        program = "${file}",
        cwd = vim.fn.getcwd(),
        sourceMaps = true,
        protocol = "inspector",
        port = 9222,
        webRoot = "${workspaceFolder}"
    }
}

require('dap.ext.vscode').load_launchjs()