Phpstorm using Xdebug to debug cannot enter breakpoint

Source: Internet
Author: User
Tags php debug

After the installation configuration succeeds Xdebug, the breakpoint is not entered at the time of debugging, but what's going on?

I configured the start address here, the corresponding breakpoint in the program

But when the program executes to the breakpoint position, it doesn't stop entering the breakpoint.

Reply content:

After the installation configuration succeeds Xdebug, the breakpoint is not entered at the time of debugging, but what's going on?

I configured the start address here, the corresponding breakpoint in the program

But when the program executes to the breakpoint position, it doesn't stop entering the breakpoint.

Here's a simple way to configure:

PHP Configuration

    • Add configuration in php.ini: [Only key configuration is included here]

#开启远程调试xdebug.remote_enable = 1  xdebug.remote_handler = "dbgp"xdebug.remote_host = "127.0.0.1"#这个端口不占用phpfpm 的9000,换用另一个,一定要和上面phpstrom配置中的端口一致xdebug.remote_port=9001#开启自动开始调试xdebug.remote_autostart=1zend_extension=xdebug.so

Phpstrom Configuration

File---Settings--Languages & Frameworks----PHP--Debug
Xdebug Block
The debug port value is the same as the first port 9001

Open and Close debugging

    • Phpstrom options: Run--and (Run/stop) Listening for PHP debug connections[icon is a small bug in the lower right corner of the green phone microphone, near the top corner of the minimized button by default also has a quick access icon], This is the button that turns off debugging.

  • 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.