launch.json 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. "runtimeArgs": [
  12. "-dxdebug.mode=debug",
  13. "-dxdebug.start_with_request=yes",
  14. "-dxdebug.log_level=7",
  15. "artisan",
  16. "serve",
  17. "--host=127.0.0.1",
  18. "--port=80",
  19. "-v"
  20. ],
  21. "program": "",
  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.start_with_request=yes"
  49. ],
  50. "env": {
  51. "XDEBUG_MODE": "debug,develop",
  52. "XDEBUG_CONFIG": "client_port=${port}"
  53. }
  54. }
  55. ]
  56. }