官术网_书友最值得收藏!

Configuring remote debugging

We will use the Chrome browser for development using the integrated JavaScript, CSS, and HTML debugging tools. To debug PHP scripts, we will need to install and configure a PHP remote debugger. The debugger we will use is called Xdebug--https://xdebug.org/index.php. Xdebug needs to be installed and configured in three places:

  • The web server (Apache running our local development server)
  • The development environment (Eclipse)
  • The browser (Chrome)

The first step is to configure Xdebug in Apache. In order to determine which version of Xdebug is required, you will need to obtain a copy of the full output from phpinfo()--refer to http://php.net/manual/en/function.phpinfo.php--and paste that into https://xdebug.org/wizard.php, as follows:

Press the Analyse my phpinfo() output button at the bottom of the page for instructions on how to download and configure Xdebug.

Next, we need to configure Xdebug in the IDE. Instructions are available in the Eclipse documentation at https://wiki.eclipse.org/Debugging_using_XDebug.

Finally, we need to install an Xdebug plugin into the browser. For Chrome, we will be using Xdebug helper. Check out https://github.com/mac-cain13/xdebug-helper-for-chrome for details, but the helper itself is easily installed through the Chrome Web Store (you can find relevant links on the GitHub page).

主站蜘蛛池模板: 台东市| 温州市| 文昌市| 利辛县| 磴口县| 禹州市| 崇义县| 加查县| 密山市| 天峻县| 新平| 建平县| 北安市| 泉州市| 全椒县| 湘阴县| 南皮县| 襄垣县| 平湖市| 迭部县| 平潭县| 彩票| 洱源县| 温泉县| 揭阳市| 曲阜市| 东莞市| 莱芜市| 鄂托克前旗| 天峻县| 蕉岭县| 揭东县| 靖宇县| 安化县| 皋兰县| 盐源县| 宝山区| 河北省| 綦江县| 闸北区| 肇州县|