I am facing an issue where i am trying to use debug-python2, however in configuration it always uses debugpy Below is my json file configuration

  "configurations": {
    "run - debugpy-python2": {
      "adapter": "debugpy-python2",
      "configuration": {
        "name": "run - debugpy-python2",
        "type": "python",
        "request": "launch",
        "cwd": "<directory_path>",
        "python": "/bin/python2.7",
        "stopOnEntry": true,
        "program": "${file}"

Below is the vimspector.log trying to use python3 despite python2 settings

2022-11-15 01:02:45,797 - INFO - Configuration: {"adapter": "debugpy-python2", "configuration": {"name": "run - debugpy-python2", "type": "python", "request": "launch", "cwd": "<directory_path>", "python": "/bin/python2.7", "stopOnEntry": true, "program": "<file_to_be_run.py>"}}
2022-11-15 01:02:45,797 - INFO - Adapter: {"command": ["/bin/python3", "/home/<usr_name>/.local/share/nvim/plugged/vimspector/gadgets/linux/debugpy-python2/build/lib/debugpy/adapter"], "configuration": {"python": "/bin/python3", "subProcess": false}, "name": "debugpy"}
2022-11-15 01:02:45,799 - INFO - Starting debug adapter with: {"command": ["/bin/python3", "/home/<usr_name>/.local/share/nvim/plugged/vimspector/gadgets/linux/debugpy-python2/build/lib/debugpy/adapter"], "configuration": {"python": "/bin/python3", "subProcess": false}, "name": "debugpy"}


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.