From d45b90e28752b85c5973b0d8b7d1103812e7f675 Mon Sep 17 00:00:00 2001 From: Ariel D'Alessandro Date: Tue, 25 Jan 2022 20:38:04 +0100 Subject: Change vimspector for dap --- lua/alpha/scratchs/dap.lua | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 lua/alpha/scratchs/dap.lua (limited to 'lua/alpha/scratchs/dap.lua') diff --git a/lua/alpha/scratchs/dap.lua b/lua/alpha/scratchs/dap.lua deleted file mode 100644 index 0434449..0000000 --- a/lua/alpha/scratchs/dap.lua +++ /dev/null @@ -1,44 +0,0 @@ --- What is require to improve the debug --- A single configuration, dinamicaly generate when start the debugging --- keybinding to add breakpoint --- continue --- step over --- step into --- step out --- --- --- nnoremap :lua require'dap'.continue() --- nnoremap :lua require'dap'.step_over() --- nnoremap :lua require'dap'.step_into() --- nnoremap :lua require'dap'.step_out() --- nnoremap b :lua require'dap'.toggle_breakpoint() --- nnoremap B :lua require'dap'.set_breakpoint(vim.fn.input('Breakpoint condition: ')) --- nnoremap lp :lua require'dap'.set_breakpoint(nil, nil, vim.fn.input('Log point message: ')) --- nnoremap dr :lua require'dap'.repl.open() --- nnoremap dl :lua require'dap'.run_last() --- help mapping --- my idea is to have a function to generate the path of the configuration --- --- --- local dap = require('dap') - --- dap.adapters.php = { --- type = 'executable', --- command = 'node', --- args = { '/home/adalessa/repos/vscode-php-debug/out/phpDebug.js' } --- } - --- dap.configurations.php = { --- { --- type = 'php', --- request = 'launch', --- name = 'Listen for Xdebug', --- port = 9003, --- pathMappings = { --- ['/app'] = '/home/adalessa/code/php/carin-gateway-service' --- } --- } --- } --- the problem is the path mapping maybe just have that updated by project base --- maybe have it as a resolve function of the path when open, need to test - require('dap.ui.widgets').hover() -- cgit v1.2.3