launch.json 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {
  2. // Use IntelliSense to learn about possible attributes.
  3. // Hover to view descriptions of existing attributes.
  4. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  5. "version": "0.2.0",
  6. "configurations": [
  7. {
  8. "type": "lldb",
  9. "request": "launch",
  10. "name": "Debug unit tests in executable 'advent_of_code'",
  11. "cargo": {
  12. "args": ["test", "--no-run", "--bin=advent_of_code", "--package=advent_of_code"],
  13. "filter": {
  14. "name": "advent_of_code",
  15. "kind": "bin"
  16. }
  17. },
  18. "args": [],
  19. "cwd": "${workspaceFolder}"
  20. },
  21. {
  22. "type": "lldb",
  23. "request": "launch",
  24. "name": "Debug executable 'advent_of_code'",
  25. "cargo": {
  26. "args": ["build", "--bin=advent_of_code", "--package=advent_of_code"],
  27. "filter": {
  28. "name": "advent_of_code",
  29. "kind": "bin"
  30. }
  31. },
  32. "args": ["1"],
  33. "cwd": "${workspaceFolder}"
  34. },
  35. {
  36. "type": "lldb",
  37. "request": "launch",
  38. "name": "Debug unit tests in library 'advent_of_code'",
  39. "cargo": {
  40. "args": ["test", "--no-run", "--lib", "--package=advent_of_code"],
  41. "filter": {
  42. "name": "advent_of_code",
  43. "kind": "lib"
  44. }
  45. },
  46. "args": [],
  47. "cwd": "${workspaceFolder}"
  48. }
  49. ]
  50. }