launch.json 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {
  2. "version": "0.2.0",
  3. "configurations": [
  4. {
  5. "name": "Listen for Xdebug",
  6. "type": "php",
  7. "request": "launch",
  8. "port": 9003,
  9. "pathMappings": {
  10. "/opt/una": "${workspaceFolder}"
  11. },
  12. "log": true
  13. }/*,
  14. {
  15. "name": "Launch currently open script",
  16. "type": "php",
  17. "request": "launch",
  18. "program": "${file}",
  19. "cwd": "${fileDirname}",
  20. "port": 0,
  21. "runtimeArgs": [
  22. "-dxdebug.start_with_request=yes"
  23. ],
  24. "env": {
  25. "XDEBUG_MODE": "debug,develop",
  26. "XDEBUG _CONFIG": "client_port=${port}"
  27. }
  28. },
  29. {
  30. "name": "Launch Built-in web server",
  31. "type": "php",
  32. "request": "launch",
  33. "runtimeArgs": [
  34. "-dxdebug.mode=debug",
  35. "-dxdebug.start_with_request=yes",
  36. "-S",
  37. "localhost:0"
  38. ],
  39. "program": "",
  40. "cwd": "${workspaceRoot}",
  41. "port": 9003,
  42. "serverReadyAction": {
  43. "pattern": "Development Server \\(http://localhost:([0-9]+)\\) started",
  44. "uriFormat": "http://localhost:%s",
  45. "action": "openExternally"
  46. }
  47. }*/
  48. ]
  49. }