launch.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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. "name": "Cocos2-launch",
  9. "type": "lua",
  10. "request": "launch",
  11. "runtimeType": "Cocos2",
  12. "localRoot": "${workspaceRoot}",
  13. "commandLine": "-workdir ${workspaceRoot}/../ -file src/main.lua",
  14. "port": 7003,
  15. "exePath": "",
  16. "fileExtNames": [
  17. ".lua",
  18. ".txt",
  19. ".lua.txt",
  20. ".bytes"
  21. ],
  22. "isFoxGloryProject": false,
  23. "printType": 1
  24. },
  25. {
  26. "name": "COCOS(remote debugging)",
  27. "type": "lua",
  28. "request": "attach",
  29. "runtimeType": "Cocos2",
  30. "localRoot": "${workspaceRoot}",
  31. "port": 7003,
  32. "fileExtNames": [
  33. ".lua",
  34. ".txt",
  35. ".lua.txt",
  36. ".bytes"
  37. ],
  38. "isFoxGloryProject": false,
  39. "printType": 1
  40. },
  41. {
  42. "name": "Unity-ulua",
  43. "type": "lua",
  44. "request": "attach",
  45. "runtimeType": "Unity",
  46. "localRoot": "${workspaceRoot}",
  47. "fileExtNames": [
  48. ".lua",
  49. ".txt",
  50. ".lua.txt",
  51. ".bytes"
  52. ],
  53. "port": 7003,
  54. "printType": 1
  55. },
  56. {
  57. "name": "Unity-slua",
  58. "type": "lua",
  59. "request": "attach",
  60. "runtimeType": "Unity",
  61. "localRoot": "${workspaceRoot}",
  62. "fileExtNames": [
  63. ".lua",
  64. ".txt",
  65. ".lua.txt",
  66. ".bytes"
  67. ],
  68. "port": 7003,
  69. "printType": 1
  70. },
  71. {
  72. "name": "Unity-xlua",
  73. "type": "lua",
  74. "request": "attach",
  75. "runtimeType": "Unity",
  76. "localRoot": "${workspaceRoot}",
  77. "fileExtNames": [
  78. ".lua",
  79. ".txt",
  80. ".lua.txt",
  81. ".bytes"
  82. ],
  83. "port": 7003,
  84. "printType": 1
  85. },
  86. {
  87. "name": "OpenResty",
  88. "type": "lua",
  89. "request": "attach",
  90. "runtimeType": "OpenResty",
  91. "localRoot": "${workspaceRoot}",
  92. "port": 7003,
  93. "fileExtNames": [
  94. ".lua"
  95. ],
  96. "printType": 1
  97. },
  98. {
  99. "name": "LuaTest",
  100. "type": "lua",
  101. "request": "launch",
  102. "runtimeType": "LuaTest",
  103. "mainFile": "${fileBasenameNoExtension}",
  104. "localRoot": "${fileDirname}",
  105. "curFileExtname": "${fileExtname}",
  106. "fileExtNames": [
  107. ".lua",
  108. ".txt",
  109. ".lua.txt",
  110. ".bytes"
  111. ],
  112. "port": 7003,
  113. "printType": 1
  114. }
  115. ]
  116. }