Phpstorm Configure Xdebug Debug PHP program ____php

Source: Internet
Author: User
Tags vc9

from:http://blog.csdn.net/ljfrocky/article/details/46531137

This article mainly describes how to use Phpstorm + xdebug debugging PHP program, need friends can refer to the next. Operating Environment

Phpstorm version: 8.0.3
PHP Version: 5.4.12
Xdebug version: Php_xdebug-2.2.3-5.4-vc9-x86_64.dll
Note: PHP version and xdebug version must be configured relative to the xdebug

Edit PHP.ini, the following configuration is for reference only, the path to change their own.

Zend_extension = "D:/wampserver2.4/bin/php/php5.4.12/zend_ext/php_xdebug-2.2.3-5.4-vc9-x86_64.dll"
[Xdebug]
xdebug.remote_enable = on
Xdebug.remote_handler = dbgp
xdebug.remote_host = localhost
xdebug.remote _port = 9000
Xdebug.idekey = Phpstorm
1 2 3 4 5 6 7

Note: Remote_handler, Remote_host, remote_port These all have default values, but the recommended settings, at least know to set these parameters ~

When configured, reboot the Apache configuration Phpstorm .

1. First check the Xdebug configuration of Phpstorm


The debug port here is to be consistent with the xdebug.remote_port inside the php.ini. The default is 9000, which can be changed to another port if 9000 ports are occupied.

2. Set Debug

Start Debugging

Hit the first breakpoint, select the configured Debug, and then press the next insect button to start debugging.
Summary

Depending on the breakpoint configuration, or when the debug URL is opened, or after post, if Phpstorm hears the debug connection, it immediately switches to the editor interface and jumps to the set breakpoint, and the browser side waits for the phpstorm operation.
You can interrupt Phpstorm debugging at any time, or easy to carry out step into/step over/run to Cursor (this explosive)
Alas, do not want to debug, phpstorm but always jump out. Remember just that phone button, and then click, let it become red, just fine.

The content reproduced from: http://www.jb51.net/article/58069.htm, some text and pictures have been modified.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.