Phped + debugger + XAMPP debugging skills

Source: Internet
Author: User
Overview:

Use"XAMPPIntegrated Software Package "Ghost and other PHP run the installation package.

If the runtime environment such as php.exe comes with phped, it means we have to reset its PHP. ini.XAMPPIntegrated Software Package "configured environment parameters.

If you direct the PHP runtime environment that comes with phped to the previously configured"XAMPPIntegrate the software package. The problem is solved ~~~ Shows the adjustment:

 

<1> set "tools --> Settings --> RUN & debug", as shown in the following figure:

 

1. Set the browser to an external Firefox browser of phped

 

 

2. Change the PHP runtime environment of phped to XAMPP.

 

 

<2> set the breakpoint and click the debug button on the toolbar to perform debugging.

 

 

<3>. The preceding debugging method is "Local debugging". What should I do if I want to perform "remote debugging" through a URL? As follows:

 

 

 

ForLocal debugging", You can alsoAdd Parameters", Such as local debuggingProgram: Index. php? M = Test & C = Main & A = index. The operation is as follows:

1. Open"Run --> Parameters"Dialog box, set parameters:

 

 

2. Activate"Index. php"File window, click"Run in Debugger"Button to debug local parameters.

 

 

 

 

 

<4>. The default running mode is selected during debugging."Http mode (SRV Local Web Server )", That is, the virtual machine that comes with phped, as shown in (right-click the project --> select "properties "):

 

 

 

 

Of course, it can also be used"Third-party web servers", Refer to the settings below:

 

 

 

 

 

 

<5>. By default, phped debugs the currently activated window file, as shown in. After I click "Debug button", the "456. php" page is debugged.

 

 

You can also set debugging settings for the project so that the start page of each debugging is the same (rather than the current activation window page). The settings are as follows:

 

 

 

 

 

 

 

Appendix:Debugger debugging of phped. A solution that displays garbled characters when the variable value is Chinese

 

 

 

 

 

 

 

 

 

 

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.