Debugging 在本地使用PhpStorm进行调试

Debugging 在本地使用PhpStorm进行调试,debugging,phpstorm,Debugging,Phpstorm,这是一个很难回答的问题。我正在上传到远程服务器。有人建议我在本地调试(而不是远程调试)。如何在浏览器中调出文件,然后使用PhpStorm中的调试工具?目前,我的远程主机(在PhpStorm中)已配置。我自己做过研究,但似乎找不到明确的答案。谢谢 存在如中所述的“零配置”调试。此外,如果遇到问题,请尝试此xdebug设置: ; path to your php_xdebug extension file ; download from https://xdebug.org/wizard.php z

这是一个很难回答的问题。我正在上传到远程服务器。有人建议我在本地调试(而不是远程调试)。如何在浏览器中调出文件,然后使用PhpStorm中的调试工具?目前,我的远程主机(在PhpStorm中)已配置。我自己做过研究,但似乎找不到明确的答案。谢谢

存在如中所述的“零配置”调试。此外,如果遇到问题,请尝试此xdebug设置:

; path to your php_xdebug extension file
; download from https://xdebug.org/wizard.php
zend_extension="c:\xampp-php7\php\ext\php_xdebug-2.4.0-7.0-vc14.dll"
; disables profiler globally 
xdebug.profiler_enable = 0
; allows enabling it selectively with request parameter "XDEBUG_PROFILE"
xdebug.profiler_enable_trigger = 1
; directory to output profiler files to
xdebug.profiler_output_dir = "C:\xampp-php7\tmp"
; profiler file name (with request uri and timestamp)
xdebug.profiler_output_name = "%R-%t.cgout"
; enables debugger
xdebug.remote_enable = 1
; selects the dbgp protocol
xdebug.remote_handler = "dbgp"
; host where debug client is running
xdebug.remote_host = "localhost"
; debugger port
xdebug.remote_port = 9000
; disables xdebug traces in error messages - use https://tracy.nette.org/ instead
xdebug.default_enable = "Off"
; makes sure that the process does not freeze when there is no debug client
xdebug.remote_autostart = 0
我创建了一个

1)2)参考此->。我回答。