Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize breakpoint debugging

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article is about how to implement breakpoint debugging. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

First, install php-debug in atom, click file- > settings, and then click install to search php-debug. If you can't get out of the search here, you need to find a way! Learn to surf the Internet scientifically! This is how the installation is successful.

Download Xdebug download address: https://xdebug.org/download, open the address to see the extension, click here is the installation of php7.3, but there are two php7.3 to choose which one! Open your PHP environment to see the vc15 in the box and put the downloaded file to D:\ phpstudy_pro\ Extensions\ php\ php7.3.4nts\ ext, here is the address of Kaka. Just put it in your own PHP environment.

Third, configure and then find your php.ini file and copy the following configuration. Remember to change the location of the zend_extension.

This location has something to do with your PHP location.

[Xdebug]

Zend_extension = D:\ phpstudy_pro\ Extensions\ php\ php7.3.4nts\ ext\ php_xdebug-2.9.6-7.3-vc15-nts-x86_64.dll

Xdebug.remote_enable = On

Xdebug.remote_host = localhost

Xdebug.remote_port = 9000

Xdebug.remote_handler = dbgp

Xdebug.idekey=xdebug-atom

How to determine this position! If you are using the new version of phpstudy,D:\ phpstudy_pro\ Extensions\ php\ php7.3.4nts\ ext, this is the location. If you are the old version of phpstudy, the location is C:\ phpStudy\ PHPTutorial\ php\ php-7.1.13-nts\ ext.

Keep in mind that you need to restart the environment after testing the above work.

Two things need to be done at this time.

First open the debug of atom

Second, enter the address http://localhost/index.php?XDEBUG_SESSION_START=1 in the address bar. Here, pay attention to the following parameters.

A pop-up box will appear, and the address will be filled in with your project path, and the debug panel will come out at this time, and you can see that our variable values have been printed out. Until here, our breakpoint debugging is complete.

Thank you for reading! This is the end of this article on "how to achieve breakpoint debugging". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report