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