launch.json 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. {
  2. // 使用 IntelliSense 了解相关属性。
  3. // 悬停以查看现有属性的描述。
  4. // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
  5. "version": "0.2.0",
  6. "configurations": [
  7. {
  8. "type": "java",
  9. "name": "Current File",
  10. "request": "launch",
  11. "mainClass": "${file}"
  12. },
  13. {
  14. "type": "java",
  15. "name": "BaseCodeGenerator",
  16. "request": "launch",
  17. "mainClass": "com.moka.gdtauto.BaseCodeGenerator",
  18. "projectName": "gdt-auto"
  19. },
  20. {
  21. "type": "java",
  22. "name": "GdtAutoApplication",
  23. "request": "launch",
  24. "mainClass": "com.moka.gdtauto.GdtAutoApplication",
  25. "projectName": "gdt-auto",
  26. "vmArgs": "--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED"
  27. },
  28. {
  29. "type": "java",
  30. "name": "ImageWatermarkSimpleTest",
  31. "request": "launch",
  32. "mainClass": "com.moka.gdtauto.util.ImageWatermarkSimpleTest",
  33. "projectName": "gdt-auto"
  34. },
  35. {
  36. "type": "java",
  37. "name": "SampleTest",
  38. "request": "launch",
  39. "mainClass": "com.moka.gdtauto.util.SampleTest",
  40. "projectName": "gdt-auto"
  41. },
  42. {
  43. "type": "java",
  44. "name": "VideoWatermarkSimpleTest",
  45. "request": "launch",
  46. "mainClass": "com.moka.gdtauto.util.VideoWatermarkSimpleTest",
  47. "projectName": "gdt-auto"
  48. },
  49. {
  50. "type": "java",
  51. "name": "JUnit: Current File (支持虚拟线程调试)",
  52. "request": "launch",
  53. "mainClass": "org.junit.platform.console.ConsoleLauncher",
  54. "args": "--select-class=${fileBasenameNoExtension}",
  55. "classPaths": [
  56. "$Auto",
  57. "$Runtime"
  58. ],
  59. "modulePaths": [
  60. "$Auto",
  61. "$Runtime"
  62. ],
  63. "projectName": "gdt-auto",
  64. "vmArgs": "-Djdk.virtualThreadScheduler.maxPoolSize=1"
  65. },
  66. {
  67. "type": "java",
  68. "name": "JUnit: 指定方法 (修改args中的类名和方法名)",
  69. "request": "launch",
  70. "mainClass": "org.junit.platform.console.ConsoleLauncher",
  71. "args": "--select-method=com.moka.gdtauto.service.AdPlanDailyReportSyncTest#testSyncDailyCreativeReport",
  72. "classPaths": [
  73. "$Auto",
  74. "$Runtime"
  75. ],
  76. "modulePaths": [
  77. "$Auto",
  78. "$Runtime"
  79. ],
  80. "projectName": "gdt-auto",
  81. "vmArgs": "-Djdk.virtualThreadScheduler.maxPoolSize=1"
  82. }
  83. ]
  84. }