Для Python это работает довольно хорошо, я могу просто вызвать debugpy с портом для прослушивания
Код: Выделить всё
python -m debugpy --listen 127.0.0.1:5678 --wait-for-client myapp.py
Код: Выделить всё
dap.adapters.python = {
type = 'server',
port = 5678,
host = 127.0.0.1,
options = {
source_filetype = 'python',
},
}
dap.configurations.python = {
{
type = 'python', -- the type here established the link to the adapter definition: `dap.adapters.python`
request = 'attach',
name = "Attach to debugpy (already running)",
justMyCode = false,
}
}
Запустите приложение, используя
Код: Выделить всё
lldb-server g :1234 ./build/Debug/myapp.exe ../sbeer_meteocache_config.ini
Код: Выделить всё
Debug adapter didn't respond. Either the adapter is slow (then wait and ignore this) or there is a problem with y our adapter or Код: Выделить всё
configuration. Check the logs for errors (:help dap.set_log_level)Код: Выделить всё
-- Rust & C++
dap.adapters.lldb_server = {
type = 'server',
host = '127.0.0.1',
port = 1234,
}
local lldb_server_config = {
{
name = "Attach to lldb_server (already running)",
type = "lldb_server",
request = "attach",
stopOnEntry = true,
},
}
dap.configurations.c = lldb_server_config
dap.configurations.cpp = lldb_server_config
dap.configurations.rust = lldb_server_config
Что мне не хватает?
Подробнее здесь: https://stackoverflow.com/questions/798 ... l-terminal
Мобильная версия