.vimspector.json 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {
  2. "configurations": {
  3. "python - launch nosetests": {
  4. "adapter": "vscode-python",
  5. "variables": [
  6. {
  7. "python": {
  8. "shell": "/bin/bash -c 'if [ -z \"${dollar}VIRTUAL_ENV\" ]; then echo $$(which python); else echo \"${dollar}VIRTUAL_ENV/bin/python\"; fi'"
  9. },
  10. "nosetests": {
  11. "shell": "/bin/bash -c 'if [ -z \"${dollar}VIRTUAL_ENV\" ]; then echo $$(which nosetests); else echo \"${dollar}VIRTUAL_ENV/bin/nosetests\"; fi'"
  12. }
  13. },
  14. {
  15. "python_path": {
  16. "shell": [
  17. "${python}",
  18. "${workspaceRoot}/run_tests.py",
  19. "--dump-path"
  20. ]
  21. }
  22. }
  23. ],
  24. "configuration": {
  25. "name": "Python nosetests",
  26. "type": "vscode-python",
  27. "request": "launch",
  28. "cwd": "${workspaceRoot}",
  29. "stopOnEntry": true,
  30. "console": "integratedTerminal",
  31. "justMyCode": false,
  32. "debugOptions": [],
  33. "program": "${nosetests}",
  34. "pythonPath": "${python}",
  35. "args": [
  36. "-v",
  37. "--with-id",
  38. "--ignore-files=(^\\.|^setup\\.py$$)",
  39. "${Test}"
  40. ],
  41. "env": {
  42. "PYTHONPATH": "${python_path}",
  43. "LD_LIBRARY_PATH": "${workspaceRoot}/third_party/ycmd/this_party/clang/lib",
  44. "YCM_TEST_NO_RETRY": "1"
  45. }
  46. }
  47. }
  48. }
  49. }