launch.json 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {
  2. "version": "0.2.0",
  3. "configurations": [
  4. {
  5. "name": "gc-master",
  6. "type": "go",
  7. "request": "launch",
  8. "mode": "debug",
  9. "program": "${workspaceFolder}\\examples\\demo_game_cluster\\nodes\\main.go",
  10. "console" :"integratedTerminal",
  11. "args": [
  12. "master",
  13. "--path=../examples/config/profile-gc.json",
  14. "--node=gc-master"
  15. ]
  16. },
  17. {
  18. "name": "gc-center",
  19. "type": "go",
  20. "request": "launch",
  21. "mode": "debug",
  22. "program": "${workspaceFolder}\\examples\\demo_game_cluster\\nodes\\main.go",
  23. "console" :"integratedTerminal",
  24. "args": [
  25. "center",
  26. "--path=../examples/config/profile-gc.json",
  27. "--node=gc-center"
  28. ]
  29. },
  30. {
  31. "name": "gc-web-1",
  32. "type": "go",
  33. "request": "launch",
  34. "mode": "debug",
  35. "program": "${workspaceFolder}\\examples\\demo_game_cluster\\nodes\\main.go",
  36. "console" :"integratedTerminal",
  37. "args": [
  38. "web",
  39. "--path=../examples/config/profile-gc.json",
  40. "--node=gc-web-1"
  41. ]
  42. },
  43. {
  44. "name": "gc-gate-1",
  45. "type": "go",
  46. "request": "launch",
  47. "mode": "debug",
  48. "program": "${workspaceFolder}\\examples\\demo_game_cluster\\nodes\\main.go",
  49. "console" :"integratedTerminal",
  50. "args": [
  51. "gate",
  52. "--path=../examples/config/profile-gc.json",
  53. "--node=gc-gate-1"
  54. ]
  55. },
  56. {
  57. "name": "gc-game-10001",
  58. "type": "go",
  59. "request": "launch",
  60. "mode": "debug",
  61. "program": "${workspaceFolder}\\examples\\demo_game_cluster\\nodes\\main.go",
  62. "console" :"integratedTerminal",
  63. "args": [
  64. "game",
  65. "--path=../examples/config/profile-gc.json",
  66. "--node=10001"
  67. ]
  68. }
  69. ]
  70. }