launch.json 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {
  2. // 使用 IntelliSense 了解相关属性。
  3. // 悬停以查看现有属性的描述。
  4. // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
  5. "version": "0.2.0",
  6. "configurations": [{
  7. "name": ".NET Core Launch (Development)",
  8. "type": "coreclr",
  9. "request": "launch",
  10. "preLaunchTask": "build",
  11. "program": "${workspaceFolder}/bin/Debug/netcoreapp3.0/MySystem.dll",
  12. "args": [],
  13. "cwd": "${workspaceFolder}",
  14. "stopAtEntry": false,
  15. "serverReadyAction": {
  16. "action": "openExternally",
  17. "pattern": "^\\s*Now listening on:\\s+(https?://\\S+)"
  18. },
  19. "env": {
  20. "ASPNETCORE_ENVIRONMENT": "Development"
  21. },
  22. "sourceFileMap": {
  23. "/Views": "${workspaceFolder}/Views"
  24. }
  25. },{
  26. "name": ".NET Core Launch (Production)",
  27. "type": "coreclr",
  28. "request": "launch",
  29. "preLaunchTask": "build",
  30. "program": "${workspaceFolder}/bin/Debug/netcoreapp3.0/MySystem.dll",
  31. "args": [],
  32. "cwd": "${workspaceFolder}",
  33. "stopAtEntry": false,
  34. "serverReadyAction": {
  35. "action": "openExternally",
  36. "pattern": "^\\s*Now listening on:\\s+(https?://\\S+)"
  37. },
  38. "env": {
  39. "ASPNETCORE_ENVIRONMENT": "Production"
  40. },
  41. "sourceFileMap": {
  42. "/Views": "${workspaceFolder}/Views"
  43. }
  44. },
  45. {
  46. "name": ".NET Core Attach",
  47. "type": "coreclr",
  48. "request": "attach",
  49. "processId": "${command:pickProcess}"
  50. }
  51. ]
  52. }