launch.json 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. {
  2. // 使用 IntelliSense 了解相关属性。
  3. // 悬停以查看现有属性的描述。
  4. // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
  5. "version": "0.2.0",
  6. "configurations": [{
  7. "type": "node",
  8. "request": "launch",
  9. "name": "启动程序",
  10. "program": "${workspaceFolder}/super_service\\src\\main\\webapp\\scripts\\admin\\notice\\noticeAppPublish.js"
  11. },
  12. {
  13. "name": "Python",
  14. "type": "python",
  15. "request": "launch",
  16. "stopOnEntry": false, //是否在第一条语句时程序停止,下面的这个选项都一样
  17. "pythonPath": "C:/Users/HIAPAD/AppData/Local/Programs/Python/Python36/python", //可执行文件路径
  18. "program": "${file}",
  19. "cwd": "${workspaceRoot}",
  20. "env": {},
  21. "envFile": "${workspaceRoot}/.env",
  22. "debugOptions": [
  23. "WaitOnAbnormalExit",
  24. "WaitOnNormalExit",
  25. "RedirectOutput"
  26. ]
  27. },
  28. {
  29. "name": "PySpark",
  30. "type": "python",
  31. "request": "launch",
  32. "stopOnEntry": true,
  33. "osx": {
  34. "pythonPath": "${env:SPARK_HOME}/bin/spark-submit"
  35. },
  36. "windows": {
  37. "pythonPath": "${env:SPARK_HOME}/bin/spark-submit.cmd"
  38. },
  39. "linux": {
  40. "pythonPath": "${env:SPARK_HOME}/bin/spark-submit"
  41. },
  42. "program": "${file}",
  43. "cwd": "${workspaceRoot}",
  44. "env": {},
  45. "envFile": "${workspaceRoot}/.env",
  46. "debugOptions": [
  47. "WaitOnAbnormalExit",
  48. "WaitOnNormalExit",
  49. "RedirectOutput"
  50. ]
  51. },
  52. {
  53. "name": "Python Module",
  54. "type": "python",
  55. "request": "launch",
  56. "stopOnEntry": false,
  57. "pythonPath": "${config:python.pythonPath}",
  58. "module": "module.name",
  59. "cwd": "${workspaceRoot}",
  60. "env": {},
  61. "envFile": "${workspaceRoot}/.env",
  62. "debugOptions": [
  63. "WaitOnAbnormalExit",
  64. "WaitOnNormalExit",
  65. "RedirectOutput"
  66. ]
  67. },
  68. {
  69. "name": "Integrated Terminal/Console",
  70. "type": "python",
  71. "request": "launch",
  72. "stopOnEntry": false,
  73. "pythonPath": "${config:python.pythonPath}",
  74. "program": "${file}",
  75. "cwd": "",
  76. "console": "integratedTerminal",
  77. "env": {},
  78. "envFile": "${workspaceRoot}/.env",
  79. "debugOptions": [
  80. "WaitOnAbnormalExit",
  81. "WaitOnNormalExit"
  82. ]
  83. },
  84. {
  85. "name": "External Terminal/Console",
  86. "type": "python",
  87. "request": "launch",
  88. "stopOnEntry": false,
  89. "pythonPath": "${config:python.pythonPath}",
  90. "program": "${file}",
  91. "cwd": "",
  92. "console": "externalTerminal",
  93. "env": {},
  94. "envFile": "${workspaceRoot}/.env",
  95. "debugOptions": [
  96. "WaitOnAbnormalExit",
  97. "WaitOnNormalExit"
  98. ]
  99. },
  100. {
  101. "name": "Django",
  102. "type": "python",
  103. "request": "launch",
  104. "stopOnEntry": false,
  105. "pythonPath": "${config:python.pythonPath}",
  106. "program": "${workspaceRoot}/manage.py",
  107. "cwd": "${workspaceRoot}",
  108. "args": [
  109. "runserver",
  110. "--noreload",
  111. "--nothreading"
  112. ],
  113. "env": {},
  114. "envFile": "${workspaceRoot}/.env",
  115. "debugOptions": [
  116. "WaitOnAbnormalExit",
  117. "WaitOnNormalExit",
  118. "RedirectOutput",
  119. "DjangoDebugging"
  120. ]
  121. },
  122. {
  123. "name": "Flask",
  124. "type": "python",
  125. "request": "launch",
  126. "stopOnEntry": false,
  127. "pythonPath": "${config:python.pythonPath}",
  128. "program": "fully qualified path fo 'flask' executable. Generally located along with python interpreter",
  129. "cwd": "${workspaceRoot}",
  130. "env": {
  131. "FLASK_APP": "${workspaceRoot}/quickstart/app.py"
  132. },
  133. "args": [
  134. "run",
  135. "--no-debugger",
  136. "--no-reload"
  137. ],
  138. "envFile": "${workspaceRoot}/.env",
  139. "debugOptions": [
  140. "WaitOnAbnormalExit",
  141. "WaitOnNormalExit",
  142. "RedirectOutput"
  143. ]
  144. },
  145. {
  146. "name": "Flask (old)",
  147. "type": "python",
  148. "request": "launch",
  149. "stopOnEntry": false,
  150. "pythonPath": "${config:python.pythonPath}",
  151. "program": "${workspaceRoot}/run.py",
  152. "cwd": "${workspaceRoot}",
  153. "args": [],
  154. "env": {},
  155. "envFile": "${workspaceRoot}/.env",
  156. "debugOptions": [
  157. "WaitOnAbnormalExit",
  158. "WaitOnNormalExit",
  159. "RedirectOutput"
  160. ]
  161. },
  162. {
  163. "name": "Pyramid",
  164. "type": "python",
  165. "request": "launch",
  166. "stopOnEntry": true,
  167. "pythonPath": "${config:python.pythonPath}",
  168. "cwd": "${workspaceRoot}",
  169. "env": {},
  170. "envFile": "${workspaceRoot}/.env",
  171. "args": [
  172. "${workspaceRoot}/development.ini"
  173. ],
  174. "debugOptions": [
  175. "WaitOnAbnormalExit",
  176. "WaitOnNormalExit",
  177. "RedirectOutput",
  178. "Pyramid"
  179. ]
  180. },
  181. {
  182. "name": "Watson",
  183. "type": "python",
  184. "request": "launch",
  185. "stopOnEntry": true,
  186. "pythonPath": "${config:python.pythonPath}",
  187. "program": "${workspaceRoot}/console.py",
  188. "cwd": "${workspaceRoot}",
  189. "args": [
  190. "dev",
  191. "runserver",
  192. "--noreload=True"
  193. ],
  194. "env": {},
  195. "envFile": "${workspaceRoot}/.env",
  196. "debugOptions": [
  197. "WaitOnAbnormalExit",
  198. "WaitOnNormalExit",
  199. "RedirectOutput"
  200. ]
  201. },
  202. {
  203. "name": "Attach (Remote Debug)",
  204. "type": "python",
  205. "request": "attach",
  206. "localRoot": "${workspaceRoot}",
  207. "remoteRoot": "${workspaceRoot}",
  208. "port": 3000,
  209. "secret": "my_secret",
  210. "host": "localhost"
  211. }
  212. ]
  213. }