launch.json 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {
  2. "version": "0.2.0",
  3. "configurations": [
  4. {
  5. "name": "Launch package",
  6. "type": "go",
  7. "request": "launch",
  8. "mode": "auto",
  9. "remotePath": "",
  10. "port": 38697,
  11. "host": "127.0.0.1",
  12. "program": "${workspaceFolder}",
  13. "env": {
  14. },
  15. "args": [],
  16. "cwd": "${workspaceFolder}",
  17. "envFile": "${workspaceFolder}/.env",
  18. "buildFlags":""
  19. },
  20. {
  21. "name": "Debug current package",
  22. "type": "go",
  23. "request": "launch",
  24. "mode": "debug",
  25. "remotePath": "",
  26. "port": 38697,
  27. "host": "127.0.0.1",
  28. "program": "${fileDirname}",
  29. "env": {
  30. },
  31. "args": [],
  32. "cwd": "${workspaceFolder}",
  33. "envFile": "${workspaceFolder}/.env",
  34. "buildFlags":""
  35. },
  36. {
  37. "name": "Launch test function",
  38. "type": "go",
  39. "request": "launch",
  40. "mode": "test",
  41. "program": "${workspaceFolder}",
  42. "args": [
  43. "-test.run",
  44. "MyTestFunction"
  45. ]
  46. },
  47. {
  48. "name": "Attach main",
  49. "type": "go",
  50. "request": "attach",
  51. "mode": "debug",
  52. "remotePath": "",
  53. "port": 38697,
  54. "host": "127.0.0.1",
  55. "program": "${workspaceFolder}/main.go",
  56. "env": {
  57. },
  58. "args": [],
  59. "cwd": "${workspaceFolder}",
  60. "processId":"",
  61. "envFile": "${workspaceFolder}/.env",
  62. "buildFlags":""
  63. },
  64. {
  65. "name": "Attach to Process",
  66. "type": "go",
  67. "request": "attach",
  68. "mode": "local",
  69. "processId": 0
  70. },
  71. {
  72. "name": "Launch file",
  73. "type": "go",
  74. "request": "launch",
  75. "mode": "debug",
  76. "program": "${file}"
  77. }
  78. ]
  79. }