.vimspector.json 1.2 KB

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