Debugging: Difference between revisions
remove old info |
No edit summary |
||
| Line 6: | Line 6: | ||
A more current setup would be [[debugging Semantic MediaWiki in a Docker container using VSCode with PHPDebug]]. | A more current setup would be [[debugging Semantic MediaWiki in a Docker container using VSCode with PHPDebug]]. | ||
== Install == | |||
Ensure that XDebug extension is installed for your PHP environment. | |||
in the console, you can <code>php -r 'phpinfo();' | grep -i xdebug</code> | |||
Or, better yet, create a file like '''info.php''' <syntaxhighlight lang="bash"> | |||
# choose a target | |||
myFile = '../../info.php'; | |||
# add the phpinfo() function | |||
echo -e "<?php \nphpinfo();\n" > $myFile; | |||
# add the xdeub_info() function | |||
echo -e "\n\nxdebug_info();\n" >> $myFile; | |||
</syntaxhighlight> | |||