launch.json 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 Built-in web server",
  15. "type": "php",
  16. "request": "launch",
  17. "program": "${workspaceRoot}/artisan",
  18. "args": [
  19. "serve",
  20. "--port=80",
  21. "--host=127.0.0.1"
  22. ],
  23. "runtimeArgs": [
  24. "-dxdebug.mode=debug",
  25. "-dxdebug.start_with_request=yes",
  26. "-dxdebug.log_level=7"
  27. ],
  28. "cwd": "${workspaceRoot}",
  29. "port": 9003,
  30. "serverReadyAction": {
  31. "pattern": "Development Server \\(http://127.0.0.1:80\\) started",
  32. "uriFormat": "http://127.0.0.1:80",
  33. "action": "openExternally"
  34. },
  35. "env": {
  36. "APP_DEBUG": "true",
  37. "LOG_LEVEL": "debug"
  38. }
  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. }