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:
== xdebug ==
[https://xdebug.org xdebug] is a PHP extension that helps with debugging [[PHP]] code.


xdebug is a PHP extension that helps with debugging [[PHP]] code.
== Installation ==
 
 
 
== Line-by-Line Source Debugging PHP in vscode ==


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".