Phpstorm Debugging PHP Code ~ actual Operation +mark~~

Source: Internet
Author: User

Because Wamp himself has downloaded the xdebug, as long as the configuration is on the line.

1. Configure PHP.ini (open comments, no add)

XDEBUG Extension
[Xdebug]
zend_extension = "D:/wamp64/bin/php/php5.6.25/zend_ext/php_xdebug-2.4.1-5.6-vc11-x86_64.dll"
xdebug.remote_enable = 1
; remote host
xdebug.remote_host = localhost
; host Port
Xdebug.remote_port = 9001
; turn on auto start debugging
Xdebug.remote_autostart=on
xdebug.profiler_enable = 1
Xdebug.profiler_enable_trigger = Off
xdebug.profiler_output_name = cachegrind.out.%t.%p
Xdebug.profiler_output_dir = "D:/wamp64/tmp"
xdebug.show_local_vars=0
Xdebug.idekey = Phpstorm ; must be the same as configured in Phpstorm .

2. Configure Phpstorm

3. Download the Web Debug plugin, here are all chrome (optional):

1. XDEBUG_HELPER.CRX Link: http://pan.baidu.com/s/1gftMZKZ Password: WHHM

2. JetBrains IDE support CHROME_2_0_7_.CRX Link: http://pan.baidu.com/s/1sk8L0Ix Password: 3nuo

4. Select the page you want to debug, edit the current configuration

1) phpstorm internal debugging, do not use the browser

The upper left corner of the small phone can be lit red or green.

Click Edit Configurations, select PHP Script

Add breakpoints, click on the small green insects, choose a single step to run, you can happily debug ~ ~

2) Browser with debugging

The little phone must be green.

Ditto, just the second step to select PHP Web application, add a breakpoint after running the small green worm, refresh the browser.

Phpstorm Debugging PHP Code ~ actual Operation +mark~~

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.