Step-by-step: How to do Xdebug troubleshooting connection to client IDE

前端 未结 5 2092
你的背包
你的背包 2020-12-30 21:42

BACKGROUND

Using Xdebug with PHP and Komodo IDE, and Eclipse PDT.

Xdebug is installed on the server and working properly. This is confirmed

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-30 22:04

    You can use the debugclient utility to determine if the client can receive Xdebug connections, as you can read in the Xdebug documentation:

    Before you start your script you will need to tell your client that it can receive debug connections, please refer to the documentation of the specific client on how to do this. To use the bundled client simply start it after compiling and installing it. You can start it by running "debugclient". If you want to use the GDB commandset to debug your scripts, make sure you use a debugclient as bundled with Xdebug 1.3 as the one bundled with Xdebug 2 only works with the DBGp commandset. When the debugclient starts it will show the following information and then waits until a connection is initiated by the debug server:

    Xdebug Simple DBGp client (0.10.0)
    Copyright 2002-2007 by Derick Rethans.
    - libedit support: enabled
    Waiting for debug server to connect.
    

    After a connection is made the output of the debug server is shown:

    Connect
    
    
      
      
      
      
    
    (cmd)
    

    You can find more information about the Xdebug 2 initialization protocol here.
    A further reference: Howto check xdebug installation.
    Unfortunately the debugclient utility is provided only in source form, so you have to build the executable by yourself; this can be done either on Linux (see INSTALL) and Windows (with Visual Studio - see debugclient.dsp).
    XAMPP includes a compiled version in xampp/php/debugclient.exe.

提交回复
热议问题