Advertisement
Goodevil95

Untitled

Jun 26th, 2020
2,084
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. local dap = require 'dap'
  2. dap.adapters.cpp = {
  3.   attach = {
  4.     pidProperty = "pid",
  5.     pidSelect = "ask"
  6.   },
  7.   command = 'lldb-vscode',
  8.   env = {
  9.     LLDB_LAUNCH_FLAG_LAUNCH_IN_TTY = "YES"
  10.   },
  11.   name = "lldb"
  12. }
  13.  
  14. vim.cmd [[
  15.     command! -complete=file -nargs=* DebugC lua require "my_debug".start_c_debugger({<f-args>}, "gdb")
  16. ]]
  17. vim.cmd [[
  18.     command! -complete=file -nargs=* DebugRust lua require "my_debug".start_c_debugger({<f-args>}, "gdb", "rust-gdb")
  19. ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement