安装插件php-debug。
找到xampp安装目录下的readme_en.txt文件,查看php的具体版本PHP 5.6.30 (VC11 X86 32bit thread safe) + PEAR。
在xdebug下载php对应版本的插件。PHP 5.6 VC11 TS (32 bit) (SHA256: cec798666b069f8c2d5b44222c878095d3d97c456ef94a79e0d6f2bd74658e41)
将下载的php_xdebug-2.5.4-5.6-vc11.dll拷贝到C: mppphpext目录。
返回上级目录,即C: mppphp,找到php.ini,按照下面的列表配置,配置完成后重启apache。
立即学习“PHP免费学习笔记(深入)”;
修改最大执行时间为5分钟 max_execution_time=3000
末尾添加
[XDebug]zend_extension = "C: mppphpextphp_xdebug-2.5.4-5.6-vc11.dll" xdebug.remote_enable =1xdebug.remote_autostart = 1
vscode``用户设置添加"php.validate.executablePath": "C:\xampp\php\php.exe"。
php文件设置断点,手动打开网页上对应的页面即可。
以上就是使用vscode怎么调用调试php的详细内容,更多请关注php中文网其它相关文章!
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号