這是Xdebug的Xdebug的遠程啓用未按照PHP的信息enabaling
[Xdebug]
zend_extension=C:\wamp64\bin\php\php7.0.0\ext\php_xdebug-2.4.0-7.0-vc14-x86_64.dll
xdebug.remote_enable=1
xdebug.remote_port=9000
xdebug.profiler_enable=1
xdebug.profiler_output_dir=C:\wamp64\tmp
我的php.ini文件,但遠程啓用已禁用。 如果我在解釋器中進入phpstorm,它會將xdebug識別爲調試器。讓我知道你是否需要更多信息。
編輯: 我試過@lllypa sloution無濟於事。我正在使用windwos 10,firefox和wamp 3.0.0 64bit和php 7
我重新安裝了服務器以找到它並且它仍然無法正常工作。我可以訪問localhost,並且php腳本可以工作,但我無法調試。
[xdebug]
zend_extension = C:\wamp64\bin\php\php7.0.0\ext\php_xdebug-2.4.0-7.0-vc14-x86_64.dll
xdebug.remote_enable = on
xdebug.profiler_enable = on
xdebug.profiler_enable_trigger = on
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir ="C:/wamp64/tmp"
xdebug.show_local_vars=0
如果您在運行wampserver的同一臺PC上運行phpstorm,**您不是遠程調試**!遠程調試是當您在運行服務器的PC上的其他PC(IP地址)上運行IDE時。 – RiggsFolly
哦,如果你實際上是'遠程調試',那麼你應該[在XDEBUG網站上找到這個頁面足夠奇怪的**隱藏**](https://xdebug.org/docs/remote),你會發現還有一些其他參數需要設置才能獲得** remote **調試工作! – RiggsFolly