无法使用php-debug和Local by Flywheel在Atom上设置XDebug

时间:2017-10-26 18:02:42

标签: php wordpress xdebug

尝试使用Atom在我的本地WordPress项目上设置XDebug,但遇到了问题。我可以在我的代码中设置断点,但是当我加载页面时,它似乎跳过了断点。

我的设置:

php.ini

[Xdebug]
zend_extension = /opt/php/5.6.20/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so
xdebug.remote_enable=1
xdebug.remote_connect_back=On
xdebug.remote_port="4022"
xdebug.profiler_enable=0
xdebug.remote_host=192.168.95.100
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart=true
xdebug.idekey=xdebug-atom

config.cson

"*":
  editor: {}
  "exception-reporting":
    userId: "my-user-id-number"
  "php-debug":
    PathMaps: [
      "/remote/path;/local/path"
      "/app/public;/Users/my.user/Documents/Work Stuff/Company/Project Name/app/public"
    ]
    ServerAddress: "192.168.95.100"
    ServerPort: 4022
    currentPanelMode: "bottom"

ping mysite.dev

的结果
64 bytes from 192.168.95.100: icmp_seq=3 ttl=64 time=0.476 ms

飞轮设置本地: enter image description here

Atom screenshot w / breakpoint: enter image description here

当我加载页面时,断点似乎不起作用(get_header()生成的内容仍然加载)并且Atom中的调试部分没有任何变化。我已经确认我在浏览器中加载了正确的页面/模板文件。

有什么配置错误,或者我错过了某个地方的一步?

0 个答案:

没有答案