Xdebug: Difference between revisions
imported>JasonWoof Show how to install/configure xdebug with apache and vscode |
imported>Onny mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
[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 20: | 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". |