Xdebug unable to connect to client, where do I start debugging the debugger?

前端 未结 2 1660
忘了有多久
忘了有多久 2020-12-31 09:14

I\'m setting up xdebug for php within sublime text, and xdebug keeps on logging errors related to being unable to connect:

Log opened at 2016-08-18 21:06:01
         


        
2条回答
  •  醉话见心
    2020-12-31 09:26

    Ok, so after extensive testings of different settings, here are my suggestions for debugging the problem for people who come after me:

    1. Do not rely on testing with only 1 xdebug client! It's trivial to install two editors/IDEs, so get an alternate editor running to make it possible to see whether there is a problem with xdebug, or with the specific client!

    2. There can be 3 locations that carry configuration for the xdebug+xdebug client combination! The client(or editor plugin) configuration, the 20-xdebug-conf.ini file (or in php.ini equivalent), and your project-specific configuration. Make sure all 3 locations are in sync in terms of port, path_mapping, etc.

提交回复
热议问题