node2 -> node
This commit is contained in:
parent
3b8c2512c8
commit
b5ba99fd76
@ -4,7 +4,7 @@ local dap = require('dap')
|
|||||||
local function debugJest(testName, filename)
|
local function debugJest(testName, filename)
|
||||||
print("starting " .. testName .. " in " .. filename)
|
print("starting " .. testName .. " in " .. filename)
|
||||||
dap.run({
|
dap.run({
|
||||||
type = 'node2',
|
type = 'node',
|
||||||
request = 'launch',
|
request = 'launch',
|
||||||
cwd = vim.fn.getcwd(),
|
cwd = vim.fn.getcwd(),
|
||||||
runtimeArgs = {'--inspect-brk', '/usr/local/bin/jest', '--no-coverage', '-t', testName, '--', filename},
|
runtimeArgs = {'--inspect-brk', '/usr/local/bin/jest', '--no-coverage', '-t', testName, '--', filename},
|
||||||
@ -19,7 +19,7 @@ end
|
|||||||
local function attach()
|
local function attach()
|
||||||
print("attaching")
|
print("attaching")
|
||||||
dap.run({
|
dap.run({
|
||||||
type = 'node2',
|
type = 'node',
|
||||||
request = 'attach',
|
request = 'attach',
|
||||||
cwd = vim.fn.getcwd(),
|
cwd = vim.fn.getcwd(),
|
||||||
sourceMaps = true,
|
sourceMaps = true,
|
||||||
@ -31,7 +31,7 @@ end
|
|||||||
local function attachToRemote()
|
local function attachToRemote()
|
||||||
print("attaching")
|
print("attaching")
|
||||||
dap.run({
|
dap.run({
|
||||||
type = 'node2',
|
type = 'node',
|
||||||
request = 'attach',
|
request = 'attach',
|
||||||
address = "127.0.0.1",
|
address = "127.0.0.1",
|
||||||
port = 9229,
|
port = 9229,
|
||||||
|
Loading…
Reference in New Issue
Block a user