Xdebug: Difference between revisions
imported>Onny m Minor cleanup |
imported>Onny mNo edit summary |
||
Line 1: | Line 1: | ||
[https://xdebug.org xdebug] is a PHP extension that helps with debugging [[PHP]] code. | [https://xdebug.org xdebug] is a PHP extension that helps with debugging [[PHP]] code. | ||
== | == Installation == | ||
Configure your local apache/php to have the xdebug extension installed and enabled: | Configure your local apache/php to have the xdebug extension installed and enabled: | ||
Line 16: | Line 16: | ||
}; | }; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Usage == | |||
In [[vscode]] open the debug panel and click "create a launch.json file" and click "PHP". The defaults work. Just click the green triangle "Listen for Xdebug". | In [[vscode]] open the debug panel and click "create a launch.json file" and click "PHP". The defaults work. Just click the green triangle "Listen for Xdebug". |