GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||
GeezerVison is showing xdebug.org — Xdebug: Documentation » Command Line Debug Client Command Line Debug ClientThe command line debug client allows you to debug PHP scripts without having to set up an IDE. Installation #A binary for Linux, macOS, and Windows is available on the downloads page. You only have to download the binary, which you can then run from a command line. Command Line Options #The following command line options are available:
Usage #To start the client on the command line on Linux, open a shell, and then run: ./dbgpClient If the binary doesn't start or you get a To start the client on the command line on MacOS, open a shell, and then run: ./dbgpClient-macos On Windows, open a command a Command Prompt and run: dbgpClient.exe In all cases, you can add the command line options as described above. When the debug client starts, it shows some version information. It will then wait until a connection is made to it by a debugging engine (such as Xdebug): Xdebug Simple DBGp client (0.4.2) Copyright 2019-2020 by Derick Rethans Waiting for debug server to connect on port 9003. After a connection is received, the debug client shows basic information, and then shows the Connect from [::1]:51884 DBGp/1.0: Xdebug 3.0.0 — For PHP 7.4.3-dev Debugging file:///tmp/xdebug-test-2.php (ID: 5242/dr) (cmd) On this command prompt you can then enter the available DBGp commands. With
Here we step into the next line (the first line, in our case), and see which variables are available: (cmd) step_into 1 | step_into > break/ok 1 | file:///tmp/xdebug-test-2.php:14 (cmd) context_get 2 | context_get 2 | uninitialized $a The following commands and options are common:
There is a full description in the DBGp documentation. If the client has been started in "fully featured mode" ( On the client's prompt you can abort the debugging session, and then the
client, with | ||||||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |