Update debug.lua
This commit is contained in:
		
							parent
							
								
									4fcc6399a5
								
							
						
					
					
						commit
						3e22b93772
					
				| 
						 | 
					@ -41,10 +41,9 @@ return {
 | 
				
			||||||
      --[[
 | 
					      --[[
 | 
				
			||||||
      handlers = {
 | 
					      handlers = {
 | 
				
			||||||
          python = function()
 | 
					          python = function()
 | 
				
			||||||
            local PYTHON_DIR = require("mason-registry").get_package("debugpy"):get_install_path() .. "/venv/Scripts/python"
 | 
					 | 
				
			||||||
            dap.adapters.python = {
 | 
					            dap.adapters.python = {
 | 
				
			||||||
              type = "executable",
 | 
					              type = "executable",
 | 
				
			||||||
              command = PYTHON_DIR, -- use "which python" command and provide the python path
 | 
					              command = "/usr/local/bin/python", -- use "which python" command and provide the python path
 | 
				
			||||||
              args = {
 | 
					              args = {
 | 
				
			||||||
                "-m",
 | 
					                "-m",
 | 
				
			||||||
                "debugpy.adapter",
 | 
					                "debugpy.adapter",
 | 
				
			||||||
| 
						 | 
					@ -145,7 +144,8 @@ return {
 | 
				
			||||||
      request = 'launch',
 | 
					      request = 'launch',
 | 
				
			||||||
      name = 'My custom launch configuration',
 | 
					      name = 'My custom launch configuration',
 | 
				
			||||||
      program = '${file}',
 | 
					      program = '${file}',
 | 
				
			||||||
      cwd = vim.fn.getcwd()
 | 
					      cwd = vim.fn.getcwd(),
 | 
				
			||||||
 | 
					      console= "integratedTerminal",       
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
end,
 | 
					end,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue