launch.json 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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": "Next.js: debug server-side",
  9. "type": "node-terminal",
  10. "request": "launch",
  11. "command": "npm run dev"
  12. },
  13. {
  14. "name": "Next.js: debug client-side",
  15. "type": "msedge",
  16. "request": "launch",
  17. "url": "https://localhost:3000",
  18. "runtimeExecutable": "C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe",
  19. "sourceMaps": true,
  20. "sourceMapPathOverrides": {
  21. "webpack:///./*": "${webRoot}/*"
  22. }
  23. },
  24. {
  25. "name": "Full Stack Debug",
  26. "type": "node",
  27. "request": "launch",
  28. "program": "${workspaceFolder}/node_modules/next/dist/bin/next",
  29. "args": ["dev", "--experimental-https"],
  30. "runtimeArgs": ["--inspect"],
  31. "skipFiles": ["<node_internals>/**", "**/node_modules/**"],
  32. "serverReadyAction": {
  33. "action": "debugWithEdge",
  34. "killOnServerStop": true,
  35. "pattern": "- Local:.+(https://localhost:3000)",
  36. "uriFormat": "%s",
  37. "webRoot": "${workspaceFolder}"
  38. }
  39. }
  40. ]
  41. }