我正在尝试在Atom上安装xdebug,以便在wamp服务器上调试我的Magento 2代码。根据我的phpinfo()文件,我认为我已经成功安装了xdebug,但是当我要在Atom中连接调试器时,xdebug并没有出现。
我的php.ini设置如下:
; XDEBUG Extension
[xdebug]
zend_extension ="c:/wamp64/bin/php/php7.1.16/zend_ext/php_xdebug-2.6.0-7.1-
vc14-x86_64.dll"
xdebug.remote_host=127.0.0.1
xdebug.remote_enable = 1
xdebug.remote_connect_back=1
xdebug.remote_port = 9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart=true
;xdebug.profiler_enable = off
;xdebug.profiler_enable_trigger = Off
;xdebug.profiler_output_name = cachegrind.out.%t.%p
;xdebug.profiler_output_dir ="c:/wamp64/tmp"
;xdebug.show_local_vars=0
我无法在网上找到一份完整的编程教程。我曾经尝试过Atom教程, 但是失败了。我认为问题可能出在IDE密钥上,因为我不确定该怎么做。我几乎看遍了每一个YouTube视频,但似乎我还是做错了什么。 如果有人能发布一个可行的教程,我将非常感激。提前致谢 :)
PHP版本7.1.16 Xdebug版本2.6.1
xdebug.profiler_output_dir = "d:/wamp/tmp/xdebug" xdebug.profiler_output_name = "cachegrind.out.%p" xdebug.profiler_enable = 0 xdebug.profiler_append=0 xdebug.extended_info=1 xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_host=127.0.0.1 xdebug.remote_port=9000 xdebug.idekey=xdebug xdebug.max_nesting_level = 400; xdebug.remote_cookie_expire_time = 9000 xdebug.remote_log="d:/wamp/tmp/xdebug/xdebug_remot.log" xdebug.show_exception_trace=0 xdebug.show_local_vars=9 xdebug.show_mem_delta=0 xdebug.trace_format=0
- RiggsFolly