launch.json 1.8 KB

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