User Tools

Site Tools


wiki:vimspector_configs

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

  • Vim 8.2

See also

References

wiki/vimspector_configs.txt · Last modified: 2023/08/24 11:32 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki