launch.json 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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": 9001,
  12. "pathMappings": {
  13. "/var/www/html": "${workspaceFolder}\\html"
  14. },
  15. },
  16. {
  17. "name": "Launch currently open script",
  18. "type": "php",
  19. "request": "launch",
  20. "program": "${file}",
  21. "cwd": "${fileDirname}",
  22. "port": 0,
  23. "runtimeArgs": [
  24. "-dxdebug.start_with_request=yes"
  25. ],
  26. "env": {
  27. "XDEBUG_MODE": "debug,develop",
  28. "XDEBUG_CONFIG": "client_port=${port}"
  29. }
  30. },
  31. {
  32. "name": "Launch Built-in web server",
  33. "type": "php",
  34. "request": "launch",
  35. "runtimeArgs": [
  36. "-dxdebug.mode=debug",
  37. "-dxdebug.start_with_request=yes",
  38. "-S",
  39. "localhost:0"
  40. ],
  41. "program": "",
  42. "cwd": "${workspaceRoot}",
  43. "port": 9001,
  44. "serverReadyAction": {
  45. "pattern": "Development Server \\(http://localhost:([0-9]+)\\) started",
  46. "uriFormat": "http://localhost:%s",
  47. "action": "openExternally"
  48. }
  49. }
  50. ]
  51. }