Skip to content

Commit

Permalink
wip: trying to move debugger to firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
beardage committed Oct 18, 2022
1 parent 06ed66c commit 82f3a3b
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions nvim/lua/beardage/plugins/dap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ dap.adapters.chrome = {
}

-- Adapters: firefox
-- dap.adapters.firefox = {
-- type = "executable",
-- command = "node",
-- args = { os.getenv("HOME") .. "/.local/share/nvim/mason/packages/firefox-debug-adapter/dist/adapter.bundle.js" },
-- }
dap.adapters.firefox = {
type = "executable",
command = "node",
args = { os.getenv("HOME") .. "/.local/share/nvim/mason/packages/firefox-debug-adapter/dist/adapter.bundle.js" },
}

dap.configurations.javascript = {
{
Expand All @@ -53,40 +53,40 @@ dap.configurations.javascript = {

dap.configurations.javascript = {
{
type = "chrome",
request = "attach",
program = "${file}",
cwd = vim.fn.getcwd(),
name = "Debug with Firefox",
type = "firefox",
request = "launch",
reAttach = true,
sourceMaps = true,
protocol = "inspector",
port = 9222,
webRoot = "${workspaceFolder}",
url = "http://localhost:3000",
firefoxExecutable = "/home/kyle/.local/opt/firefox/firefox",
},
}

dap.configurations.javascriptreact = {
{
type = "chrome",
request = "attach",
program = "${file}",
cwd = vim.fn.getcwd(),
name = "Debug with Firefox",
type = "firefox",
request = "launch",
reAttach = true,
sourceMaps = true,
protocol = "inspector",
port = 9222,
webRoot = "${workspaceFolder}",
url = "http://localhost:3000",
firefoxExecutable = "/home/kyle/.local/opt/firefox/firefox",
},
}

dap.configurations.typescriptreact = {
{
type = "chrome",
request = "attach",
program = "${file}",
cwd = vim.fn.getcwd(),
name = "Debug with Firefox",
type = "firefox",
request = "launch",
reAttach = true,
sourceMaps = true,
protocol = "inspector",
port = 9222,
webRoot = "${workspaceFolder}",
url = "http://localhost:3000",
firefoxExecutable = "/home/kyle/.local/opt/firefox/firefox",
},
}

Expand Down

0 comments on commit 82f3a3b

Please sign in to comment.