@@ -363,81 +363,81 @@ dap_python.setup("python", {
363363
364364dap_python .test_runner = " pytest"
365365
366- dap .adapters .lldb = {
367- type = " executable" ,
368- command = " /usr/bin/lldb-vscode-11" ,
369- name = " lldb" ,
370- }
371-
372- local extension_path = vim .fn .expand " ~/.vscode/extensions/vadimcn.vscode-lldb-1.6.10/"
373- local codelldb_path = extension_path .. " adapter/codelldb"
374- local liblldb_path = extension_path .. " lldb/lib/liblldb.so"
366+ -- dap.adapters.lldb = {
367+ -- type = "executable",
368+ -- command = "/usr/bin/lldb-vscode-11",
369+ -- name = "lldb",
370+ -- }
375371
372+ -- local extension_path = vim.fn.expand "~/.vscode/extensions/vadimcn.vscode-lldb-1.7.0/"
373+ -- local codelldb_path = extension_path .. "adapter/codelldb"
374+ -- local liblldb_path = extension_path .. "lldb/lib/liblldb.so"
375+ --
376376-- dap.adapters.rt_lldb = {
377377-- type = "executable",
378378-- command = codelldb_path,
379379-- name = "rt_lldb",
380380-- }
381381
382- dap .adapters .rt_lldb = function (callback , _ )
383- local stdout = vim .loop .new_pipe (false )
384- local stderr = vim .loop .new_pipe (false )
385- local handle
386- local pid_or_err
387- local port
388- local error_message = " "
389-
390- local opts = {
391- stdio = { nil , stdout , stderr },
392- args = { " --liblldb" , liblldb_path },
393- detached = true ,
394- }
395-
396- handle , pid_or_err = vim .loop .spawn (codelldb_path , opts , function (code )
397- stdout :close ()
398- stderr :close ()
399- handle :close ()
400- if code ~= 0 then
401- print (" codelldb exited with code" , code )
402- print (" error message" , error_message )
403- end
404- end )
405-
406- assert (handle , " Error running codelldb: " .. tostring (pid_or_err ))
407-
408- stdout :read_start (function (err , chunk )
409- assert (not err , err )
410- if chunk then
411- if not port then
412- local chunks = {}
413- for substring in chunk :gmatch " %S+" do
414- table.insert (chunks , substring )
415- end
416- port = tonumber (chunks [# chunks ])
417- vim .schedule (function ()
418- callback {
419- type = " server" ,
420- host = " 127.0.0.1" ,
421- port = port ,
422- }
423- end )
424- else
425- vim .schedule (function ()
426- require (" dap.repl" ).append (chunk )
427- end )
428- end
429- end
430- end )
431- stderr :read_start (function (_ , chunk )
432- if chunk then
433- error_message = error_message .. chunk
434-
435- vim .schedule (function ()
436- require (" dap.repl" ).append (chunk )
437- end )
438- end
439- end )
440- end
382+ -- dap.adapters.rt_lldb = function(callback, _)
383+ -- local stdout = vim.loop.new_pipe(false)
384+ -- local stderr = vim.loop.new_pipe(false)
385+ -- local handle
386+ -- local pid_or_err
387+ -- local port
388+ -- local error_message = ""
389+ --
390+ -- local opts = {
391+ -- stdio = { nil, stdout, stderr },
392+ -- args = { "--liblldb", liblldb_path },
393+ -- detached = true,
394+ -- }
395+ --
396+ -- handle, pid_or_err = vim.loop.spawn(codelldb_path, opts, function(code)
397+ -- stdout:close()
398+ -- stderr:close()
399+ -- handle:close()
400+ -- if code ~= 0 then
401+ -- print("codelldb exited with code", code)
402+ -- print("error message", error_message)
403+ -- end
404+ -- end)
405+ --
406+ -- assert(handle, "Error running codelldb: " .. tostring(pid_or_err))
407+ --
408+ -- stdout:read_start(function(err, chunk)
409+ -- assert(not err, err)
410+ -- if chunk then
411+ -- if not port then
412+ -- local chunks = {}
413+ -- for substring in chunk:gmatch "%S+" do
414+ -- table.insert(chunks, substring)
415+ -- end
416+ -- port = tonumber(chunks[#chunks])
417+ -- vim.schedule(function()
418+ -- callback {
419+ -- type = "server",
420+ -- host = "127.0.0.1",
421+ -- port = port,
422+ -- }
423+ -- end)
424+ -- else
425+ -- vim.schedule(function()
426+ -- require("dap.repl").append(chunk)
427+ -- end)
428+ -- end
429+ -- end
430+ -- end)
431+ -- stderr:read_start(function(_, chunk)
432+ -- if chunk then
433+ -- error_message = error_message .. chunk
434+ --
435+ -- vim.schedule(function()
436+ -- require("dap.repl").append(chunk)
437+ -- end)
438+ -- end
439+ -- end)
440+ -- end
441441
442442dap .configurations .rust = {
443443 {
0 commit comments