Table of Contents

, ,

vimspector configs

Below should be in .vimspector.json file in project directory or add it globally so you don't have to add it to every single project to

<vimspector home>/configurations/<OS>/<filetype>/*.json

e.g for python add it to

$HOME/.vim/plugged/vimspector/configurations/linux/python/mydebug.json.

Python

{
  "configurations": {
    "run: Launch": {
      "adapter": "debugpy",
      "filetypes": [ "python" ],
      "configuration": {
        "name": "<name>: Launch",
        "type": "python",
        "request": "launch",
        "cwd": "${workspaceRoot}",
        "python": "/usr/bin/python",
        "stopOnEntry": true,
        "console": "externalTerminal",
        "debugOptions": [""],
        "args" : ["-p app -a android"],
        "program": "${file}"
      }
    },
    "bbbbb: Launch": {
      "adapter": "debugpy",
      "filetypes": [ "python" ],
      "configuration": {
        "name": "<name>: Launch",
        "type": "python",
        "request": "launch",
        "cwd": "${workspaceRoot}",
        "python": "/usr/bin/python",
        "stopOnEntry": true,
        "console": "externalTerminal",
        "debugOptions": [""],
        "args" : ["-p app -a android"],
        "program": "${file}"
        }
      }   
  }
}

Tested on

See also

References