调试时是否可以自由选择 Target 和怎样自动切换为 Debug 模式编译 #11
Answered
by
Mythos-404
MasterBalll
asked this question in
Q&A
-
两个问题:
刚入坑 nvim,对 lua 还不太熟悉,先来问下。 |
Beta Was this translation helpful? Give feedback.
Answered by
Mythos-404
Jun 14, 2024
Replies: 1 comment 1 reply
-
dap.configurations.cpp = {
{
name = "Launch file",
type = "codelldb",
request = "launch",
program = function()
require("xmake.async").exec_commnd({ "xmake", "config", "--mode=debug" }, "")
vim.cmd([[ XmakeBuid ]])
return require("xmake.project").info.target.exec_path
end,
cwd = "${workspaceFolder}",
stopOnEntry = false,
},
} 这个插件我会近期重构, 整个代码和 api 都会改变, 这些功能我会加上 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
MasterBalll
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这个插件我会近期重构, 整个代码和 api 都会改变, 这些功能我会加上