Replies: 1 comment 1 reply
-
You should be able to launch a debug session in a python file with your You can also remove the dap.configurations.javascript = {
{
types = 'node2',
requrest = 'launch',
program = '${workspaceFolder}/${file}',
cwd = vim.fn.getcwd(),
sourceMaps = true,
protocol = 'inspector',
console = 'integratedTerminal',
},
{
type = 'node2',
request = 'attach',
cwd = vim.fn.getcwd(),
sourceMaps = true,
protocol = 'inspector',
skipFiles = {'<node_internals>/**/*.js'},
},
} If you then use your |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hello 👋, i recently discovered this project after watching this youtube video. i've looked through the examples in the wiki about setting up various debuggers for various languages. however, i didn't see an example or any mention of setting up nvim-dap to work with multiple debuggers. i've setup my neovim configuration to debug nodejs by attaching to the debugger when node is run with the
--inspect
flag, but i'd also like to be able to debug python scripts using the same manner of attaching to a debugger.is there a crude example of how i could use the same keybinding to attach to the debugger depending on the current open buffer or possibly use and attach to the debugger based on filetype, or something of that nature. using my current setup if i use my key mapping to attach to the debugger after setting a breakpoint my configuration always attempts to attach to a node process, and not the python debugger debugpy.
i've taken a lot inspiration from reading through these dotfiles but it appears he's only using dap to debug nodejs.
i'll link to my current setup here in a sec.my current setup working with nvim-dap here
Beta Was this translation helpful? Give feedback.
All reactions