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 make a breakpoint on the php command line

2025-03-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

Most people do not understand the knowledge points of this article "how to make breakpoints on the php command line", so the editor summarizes the following contents, detailed contents, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "php command line how to carry out breakpoints" article.

Description

1. In addition to giving fixed breakpoints in the PHP code, we can also add breakpoints on the command line.

2. Remove the breakpoint function of the previous method. Then specify on the command line to add a breakpoint to the method.

Example

Prompt > b testFunc#3 [Breakpoint # 1 added at testFunc#3]

# 3 what does this mean? In fact, we add a breakpoint to line 3 within the body of the method. That is, we add a breakpoint on the line $I + = 3;. The number of rows starts from the line of the method definition and starts from 1. If you don't add this number of rows, you start directly from that line of the method definition.

Prompt > r [Breakpoint # 0 resolved at testFunc#3 (opline 0x1050ef660)] [Breakpoint # 0 resolved at testFunc#3 (opline 0x1050ef660)] [Breakpoint # 0 resolved at testFunc#3 (opline 0x1050ef660)] [Breakpoint # 0 resolved at testFunc#3 (opline 0x1050ef660)] [Breakpoint # 0 in testFunc () # 3 at / Users/zhangyue/MyDoc/ blog posts / dev-blog/php/202006/source/PHPDebug Interactive extension. Php: 13, hits: 1] > 00013: $I + = 3; 00014: echo "This is testFunc! I:". $I, PHP_EOL; 00015:} the above is the content of this article on "how to make breakpoints on the php command line". I believe we all have some understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.

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: 218

*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