Configuring DAP for julia
#531
-
I am trying to use local dap = require('dap')
dap.adapters.julia = {
type = "executable",
command = "/usr/bin/julia <path/to>/DebugAdapter.jl/src/DebugAdapter.jl",
}
dap.configurations.julia = {
{
-- The first three options are required by nvim-dap
type = "julia", -- the type here established the link to the adapter definition: `dap.adapters.python`
request = "launch",
name = "Launch file",
-- Options below are for debugpy, see https://github.com/microsoft/debugpy/wiki/Debug-configuration-settings for supported options
program = "${file}", -- This configuration will launch the current file if used.
juliaPath = function()
-- debugpy supports launching an application with a different interpreter then the one used to launch debugpy itself.
-- The code below looks for a `venv` or `.venv` folder in the current directly and uses the julia within.
-- You could adapt this - to for example use the `VIRTUAL_ENV` environment variable.
return "/usr/bin/julia"
end,
},
} where I have never done some configuration for Debugger Adapter Protocols before, so any help is welcome. |
Beta Was this translation helpful? Give feedback.
Answered by
mfussenegger
Apr 29, 2022
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tapyu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#532 (comment)