2015-05-13 38 views
4

一种noob问题。我正在上传到远程服务器。我被建议调试本地(而不是远程)。我如何在浏览器中提取我的文件,然后在PhpStorm中使用调试工具?就目前而言,我的远程主机(在PhpStorm中)已配置。我做了我自己的研究,但似乎无法找到明确的答案。谢谢!用本地PhpStorm进行调试

+0

1)https://confluence.jetbrains.com/display/PhpStorm/Debugging+with+PhpStorm 2)https://开头confluence.jetbrains.com/display/PhpStorm/Deployments+in+PhpStorm – LazyOne

+0

参考这个 - > http://stackoverflow.com/questions/30124782/debugging-project-in-phpstorm。我回答了。 –

回答

0

有一个“零配置”调试,如docs中所述。此外,如果遇到麻烦试试这个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 

我创建了一个gist for easier sharing