fix(path): change JS debugger paths
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
local dap = require('dap')
|
local dap = require('dap')
|
||||||
|
|
||||||
require("dap-vscode-js").setup({
|
require("dap-vscode-js").setup({
|
||||||
debugger_path = "/.local/share/lunarvim/site/pack/lazy/opt/vscode-js-debug",
|
debugger_path = "/.local/share/nvim/site/pack/lazy/opt/vscode-js-debug",
|
||||||
debugger_cmd = { "js-debug-adapter" },
|
debugger_cmd = { "js-debug-adapter" },
|
||||||
adapters = { 'node-terminal' },
|
adapters = { 'node-terminal' },
|
||||||
})
|
})
|
||||||
@@ -28,7 +28,7 @@ dap.adapters["pwa-node"] = {
|
|||||||
port = "${port}",
|
port = "${port}",
|
||||||
executable = {
|
executable = {
|
||||||
command = "node",
|
command = "node",
|
||||||
args = { os.getenv("HOME") .. "/.local/share/lvim/mason/packages/js-debug-adapter/js-debug/src/dapDebugServer.js", "${port}" },
|
args = { os.getenv("HOME") .. "/.local/share/nvim/mason/packages/js-debug-adapter/js-debug/src/dapDebugServer.js", "${port}" },
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -45,13 +45,13 @@ dap.configurations.javascript = {
|
|||||||
dap.adapters.chrome = {
|
dap.adapters.chrome = {
|
||||||
type = "executable",
|
type = "executable",
|
||||||
command = "node",
|
command = "node",
|
||||||
args = { os.getenv("HOME") .. "/.local/share/lvim/mason/packages/chrome-debug-adapter/out/src/chromeDebug.js" },
|
args = { os.getenv("HOME") .. "/.local/share/nvim/mason/packages/chrome-debug-adapter/out/src/chromeDebug.js" },
|
||||||
}
|
}
|
||||||
|
|
||||||
dap.adapters.firefox = {
|
dap.adapters.firefox = {
|
||||||
type = 'executable',
|
type = 'executable',
|
||||||
command = 'node',
|
command = 'node',
|
||||||
args = { os.getenv('HOME') .. '/.local/share/lvim/mason/packages/firefox-debug-adapter/dist/adapter.bundle.js' },
|
args = { os.getenv('HOME') .. '/.local/share/nvim/mason/packages/firefox-debug-adapter/dist/adapter.bundle.js' },
|
||||||
}
|
}
|
||||||
|
|
||||||
dap.configurations.typescriptreact = {
|
dap.configurations.typescriptreact = {
|
||||||
@@ -75,7 +75,7 @@ dap.configurations.typescriptreact = {
|
|||||||
request = "launch",
|
request = "launch",
|
||||||
url = 'http://localhost:3000',
|
url = 'http://localhost:3000',
|
||||||
webRoot = '${workspaceFolder}',
|
webRoot = '${workspaceFolder}',
|
||||||
firefoxExecutable = '/usr/bin/waterfox',
|
firefoxExecutable = '/usr/bin/firefox',
|
||||||
pathMappings = {
|
pathMappings = {
|
||||||
{
|
{
|
||||||
url = "webpack://_n_e/",
|
url = "webpack://_n_e/",
|
||||||
@@ -91,7 +91,6 @@ require("dapui").setup()
|
|||||||
|
|
||||||
local dap, dapui = require("dap"), require("dapui")
|
local dap, dapui = require("dap"), require("dapui")
|
||||||
|
|
||||||
|
|
||||||
dap.listeners.after.event_initialized["dapui_config"] = function()
|
dap.listeners.after.event_initialized["dapui_config"] = function()
|
||||||
dapui.open({})
|
dapui.open({})
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user