Phpstrom + xdebug Breakpoint debugging

Source: Internet
Author: User

Phpstrom not like other development tools Eclipse,visual Studio itself can debug breakpoints, we need to configure something to achieve . When you're pretty sure which step is out of the question you can debug with output,

but in the case of not knowing, TMD always echoes, Print_r,var_dump? Everyone is very busy, wasting time and energy, with the xdebug, we can step-by-step debugging tracking program running, the benefit is not a star two points.

First download phpunit,http://www.phpunit.cn/put in PHP folder according to your PHP version is placed

Open Phpstrom file, language and framework->php

  

Add PHP Version

  

 After the application is determined, open the PHPUnit under PHP

  

Select the third one, add the phpunit you just placed, and then apply. Open the above debug click on the second DBGP Proxy

  

IDE Key Fill Phpstrom host is the project you want to debug the domain name port default Application OK

Select Debug/Run Configuration Edit structure

  

  

Add a phpunit, select your project's directory

Create a new PHP Web application

  

Create a new servers host project domain name, debugger select Xdebug application to determine

  

Choose Google Chrome

   

Then open php.ini Modify [XDebug] to add the project domain name

  

Xdebug.profiler_append = 0
xdebug.profiler_enable = 1
Xdebug.profiler_enable_trigger = 0
Xdebug.profiler_output_dir = "D:\phpStudy\tmp\xdebug"
Xdebug.trace_output_dir = "D:\phpStudy\tmp\xdebug"
Xdebug.profiler_output_name = "cache.out.%t-%s"
xdebug.remote_enable = 1
Xdebug.remote_handler = "DBGP"
Xdebug.remote_host = "Www.endblog.com"
zend_extension= "D:\phpStudy\php53n\ext\xdebug.dll"
xdebug.idekey= "Phpstorm"

Restart the phpstudy, please.

The final step is to download the Xdebug helper Chrome version and pull it into the Google browser to install the extension. and open, and open phpstrom that phone.

  

The browser refreshes, OK, so we can debug the breakpoint.

Phpstrom + xdebug Breakpoint 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.