launch.json 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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": "Launch Built-in web server",
  9. "type": "php",
  10. "request": "launch",
  11. "program": "${workspaceRoot}/artisan",
  12. "args": [
  13. "serve",
  14. "--port=80",
  15. "--host=127.0.0.1"
  16. ],
  17. "runtimeArgs": [
  18. "-dxdebug.mode=debug",
  19. "-dxdebug.start_with_request=yes",
  20. "-dxdebug.log_level=7"
  21. ],
  22. "cwd": "${workspaceRoot}",
  23. "port": 9003,
  24. "serverReadyAction": {
  25. "pattern": "Development Server \\(http://127.0.0.1:80\\) started",
  26. "uriFormat": "http://127.0.0.1:80",
  27. "action": "openExternally"
  28. },
  29. "env": {
  30. "APP_DEBUG": "true",
  31. "LOG_LEVEL": "debug"
  32. }
  33. },
  34. {
  35. "name": "Listen for Xdebug",
  36. "type": "php",
  37. "request": "launch",
  38. "port": 9003
  39. },
  40. {
  41. "name": "Launch currently open script",
  42. "type": "php",
  43. "request": "launch",
  44. "program": "${file}",
  45. "cwd": "${fileDirname}",
  46. "port": 0,
  47. "runtimeArgs": [
  48. "-dxdebug.mode=debug",
  49. "-dxdebug.start_with_request=yes",
  50. "-dxdebug.log_level=7"
  51. ],
  52. "env": {
  53. "XDEBUG_MODE": "debug,develop",
  54. "XDEBUG_CONFIG": "client_port=${port}"
  55. }
  56. }
  57. ]
  58. }