Phpstorm + Xdebug breakpoint debugging PHP

Source: Internet
Author: User
PhpstormXdebug breakpoint debugging PHPmy. oschina. netyearnfarblog350051 running environment: PHPSTORM version: 8.0.1PHP version: 5.6.2xdebug version: php_xdebug-2.2.5-5.6-vc11-x86_64.dllps: php version and xdebug version must correspond to 1. install xdebug extension PHP in php. ini configuration,

PhpstormXdebug breakpoint debugging PHP http://my.oschina.net/yearnfar/blog/350051 runtime environment: PHPSTORM version: 8.0.1 PHP version: 5.6.2 xdebug version: php_xdebug-2.2.5-5.6-vc11-x86_64.dll ps: php version and xdebug version must be relative to 1. install xdebug extension PHP in php. ini configuration,

Phpstorm + Xdebug breakpoint debugging PHP

Http://my.oschina.net/yearnfar/blog/350051


Running environment:

PHPSTORM version: 8.0.1

PHP version: 5.6.2

Xdebug version: php_xdebug-2.2.5-5.6-vc11-x86_64.dll

Ps: php and xdebug versions must correspond to each other

1. Install xdebug extension in PHP

For php. ini configuration, the following configuration is for reference only, and the path should be replaced with your own!

[Xdebug]

Zend_extension = "D: \ wamp \ php-5.6.2-x64 \ ext \ php_xdebug-2.2.5-5.6-vc11-x86_64.dll"

Xdebug. remote_enable = On

Xdebug. remote_handler = dbgp

Xdebug. remote_host = localhost

Xdebug. remote_port = 9000

Xdebug. idekey = PHPSTORM

Ps: remote_handler, remote_host, and remote_port all have default values. However, we recommend that you set these parameters at least ~

View phpinfo ~

2. PHPSTORM settings

The landlord used zendstudio all the time. It was very painful to use phpstorm at the beginning. After using it for a while, I found it quite useful ~

1. Check the xdebug configuration of phpstorm.

The debug port here must be consistent with xdebug. remote_port in php. ini! The default value is 9000. If port 9000 is occupied, you can change it to another port.

2. Set debug.


Add a Local web server ~

Www.51open. pcom is my local web server ~ ~


3. Start debugging

  1. Set the first breakpoint and shift + F9.

  2. Set the first breakpoint, select the debug configuration, and press the bug button next to it.

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.