Replies: 3 comments
-
Just Insert entry [justMyCode, false] into dap.configurations.python table like below: dap.configurations.python = {
{
justMyCode = false, -- <--- insert here
type = "python", -- the type here established the link to the adapter definition: `dap.adapters.python`
request = 'launch',
name = 'launch file',
-- 此处指向当前文件
program = '${file}',
args = get_args,
pythonPath = function()
local venv_path = os.getenv("VIRTUAL_ENV")
if venv_path then
return venv_path .. "/bin/python"
end
return "/usr/bin/python3"
end
},
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
I solved it by changing my key bindings that run the tests. lvim.keys.normal_mode["<leader>dm"] = ":lua require('dap-python').test_method({ config = { justMyCode = false } })<CR>"
lvim.keys.normal_mode["<leader>dl"] = ":lua require('dap-python').test_class({ config = { justMyCode = false } })<CR>" |
Beta Was this translation helpful? Give feedback.
0 replies
-
Can |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Thank you for your feedback!
I am debugging a python program and want to trace into the library which needs to set the 'justMyCode' option in debugpy to 'false'.
I searched around and found a link which is not accessable, so I pasted the snapshot here. My question is how I can set this option in my lua plugin.
My python dap config:
Snapshot of the link:
Beta Was this translation helpful? Give feedback.
All reactions