1
0

.vimspector.json 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {
  2. "$schema": "https://puremourning.github.io/vimspector/schema/vimspector.schema.json",
  3. "configurations": {
  4. "Python: Attach To Vim": {
  5. "variables": {
  6. "port": "5678",
  7. "host": "localhost"
  8. },
  9. "adapter": "multi-session",
  10. "configuration": {
  11. "request": "attach"
  12. }
  13. },
  14. "python - launch pytest": {
  15. "adapter": "debugpy",
  16. "variables": [
  17. {
  18. "python": {
  19. "shell": "/bin/bash -c 'if [ -z \"${dollar}VIRTUAL_ENV\" ]; then echo $$(which python3); else echo \"${dollar}VIRTUAL_ENV/bin/python\"; fi'"
  20. }
  21. },
  22. {
  23. "python_path": {
  24. "shell": [
  25. "${python}",
  26. "${workspaceRoot}/run_tests.py",
  27. "--dump-path"
  28. ]
  29. }
  30. }
  31. ],
  32. "configuration": {
  33. "name": "Python run test",
  34. "type": "debugpy",
  35. "request": "launch",
  36. "cwd": "${workspaceRoot}",
  37. "stopOnEntry": false,
  38. "console": "integratedTerminal",
  39. "justMyCode": true,
  40. "logToFile": true,
  41. "showReturnValue": true,
  42. "debugOptions": [],
  43. "module": "unittest",
  44. "python": "${python}",
  45. "args": [
  46. "-v",
  47. "${Test}"
  48. ],
  49. "env": {
  50. "PYTHONPATH": "${python_path}",
  51. "LD_LIBRARY_PATH": "${workspaceRoot}/third_party/ycmd/third_party/clang/lib",
  52. "YCM_TEST_NO_RETRY": "1"
  53. }
  54. }
  55. }
  56. }
  57. }