Php debugging problems

Source: Internet
Author: User
Echo, var_dump, exit, and die. Try xdebug + sublimt debugging today and find that it is not easy to use. You are debugging this way. Are we all using var_dump for php debugging? Echo, var_dump, exit, and die. Try xdebug + sublimt debugging today and find that it is not easy to use.
You are debugging this way. Are we all using var_dump for php debugging?

Reply content:

Echo, var_dump, exit, and die. Try xdebug + sublimt debugging today and find that it is not easy to use.
You are debugging this way. Are we all using var_dump for php debugging?

xdebugJust configure a regularIDEOtherwise, usegdbThere is no difference. OnePhpStormAnd so on.IDE, Breakpoint, step, and variable details are all very simple operations.echo,var_dumpIt is much easier to debug this kind of guess.

I used this for debugging.BeaverHttps://github.com/funcuter/beaver

Echo, var_dump, exit, die ()
It is not a particularly complex application. Small websites are enough,

Chromephp plug-in & chromephp. php class library

Https://github.com/ccampbell/chromephp

Download ChromePhp. php

Create a PHP file, such as 1.php

include 'ChromePhp.php';ChromePhp::log('Hello console!');ChromePhp::log($_SERVER);ChromePhp::warn('something went wrong!');

Chrome app store installs the chromephp plug-in (please refer)

Open a new tab and light up the chromephp plug-in.

Enter a URL and you will see the debugging output under the chrome development tool console tab. My results

Use phpstrom, which has powerful debugging functions, such as power-off debugging. My favorites.

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.