Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Verifying Xdebug is installed

From a terminalTo verify a debugger is installed for CLI debugging, run the following command from the terminal:

Code Block
php --version

The output should reveal Xdebug is installed:

Code Block
PHP 5.5.3 (cli) (built: Aug 20 2013 16:11:53)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
    with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans

Create a To verify a debugger is installed for web debugging, create a file containing the following code and run it in the browser:

...

Code Block
<some error/warning>
PHP 5.5.3 (cli) (built: Aug 20 2013 16:11:53)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
    with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans

If the first line(s) contain errors and warnings, it's recommended to fix these before continuing.

...