- Install https://github.com/felixfbecker/vscode-php-debug as an extension to VS Code
- Install https://github.com/benmatselby/xdebug-toggler as an extension to Safari
- In VS Code click Debug -> Start Debugging
- Paste the contents of
launch.json - Add some breakpoints and start debugging :)
Last active
December 18, 2019 16:47
-
-
Save sftsk/0daf8116ebe922014946119fafc8c8fe to your computer and use it in GitHub Desktop.
XDebug with Local & Bedrock
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| // Use IntelliSense to learn about possible attributes. | |
| // Hover to view descriptions of existing attributes. | |
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Listen for XDebug", | |
| "type": "php", | |
| "request": "launch", | |
| "port": 9000, | |
| "localSourceRoot": "${workspaceRoot}/web", | |
| "serverSourceRoot": "/app/web" | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment