When xdebug is used in phpstorm for debugging, the breakpoint cannot be accessed.

Source: Internet
Author: User
After xdebug is successfully installed and configured, the breakpoint is not enabled during debugging. what is the problem? I have configured the starting address here and placed the corresponding breakpoint in the program. but when the program is executed to the breakpoint position, it does not stop entering the breakpoint. what is the problem?

After xdebug is successfully installed and configured, the breakpoint is not enabled during debugging. what is the problem?

I have configured the starting address here and placed the corresponding breakpoint in the program.

However, when the program is executed to the breakpoint location, it does not stop entering the breakpoint. why?

Reply content:

After xdebug is successfully installed and configured, the breakpoint is not enabled during debugging. what is the problem?

I have configured the starting address here and placed the corresponding breakpoint in the program.

However, when the program is executed to the breakpoint location, it does not stop entering the breakpoint. why?

Here is a simple configuration method:

Php configuration
  • Add configuration in php. ini: [only key configurations are included here]

# Enable remote debugging xdebug. remote_enable = 1 xdebug. remote_handler = "dbgp" xdebug. remote_host = "127.0.0.1" # This port does not occupy 9000 of phpfpm. if you use another port, make sure it is consistent with the Port configured in phpstrom. remote_port = 9001 # enable automatic start debugging xdebug. remote_autostart = 1zend_extension = xdebug. so
Phpstrom configuration

File --> Settings --> ages & Frameworks-> PHP --> Debug
Xdebug block
The debug port value is 9001 consistent with the first port

Enable and disable debugging
  • Options in phpstrom: Run --> (Run/Stop) Listening for PHP debug Connections [the icon is a green phone microphone of a bug in the lower right corner, the shortcut icon is also available by default near the "minimize" button in the "publish" button.] this is the button to turn 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.