TP6 Close the Trace debugging window

        I have been learning tp6 recently. Such a simple and lightweight framework brings such excellent performance and makes development so fast. If the development needs are not rigid, tp6 is definitely a good choice compared to those heavy or even hardcore frameworks. Now I am more and more fond of tp6, which provides interface services for small programs. It is perfect.   


1. In the current latest version of TP6.0 (v6.1)

The page trace function in the latest version is no longer built into the core, but the topthink/think-trace extension         will be automatically installed by default when creating a new page . Trace information will appear in the lower right corner of the browser in debugging mode. Trace debugging cannot be turned off manually at this time. Trace debugging will only be turned off when switching to deployment mode.

2. How to turn off trace debugging in debug mode

        In the latest version of TP6, trace information can be turned off by removing the topthink/think-trace extension

You can find that the extension is in require-dev by looking at composer.json in the framework root directory.

  

 Operation method

1. To remove the expansion package in require-dev, you need to add the --dev parameter

composer remove topthink/think-trace --dev

2. If you need to use trace debugging again, just reintroduce the extension.

composer require topthink/think-trace --dev

 

This is a sentence from the manual

        ThinkPHP is a free, open source, fast, simple object-oriented lightweight PHP development framework , which was born for agile WEB application development and simplified enterprise application development. ThinkPHP has been adhering to the simple and practical design principle since its birth. While maintaining excellent performance and minimal code, it pays more attention to ease of use. Publishing under Apache2an open source license agreement means that you can use ThinkPHP for free, and even allow the applications you develop based on ThinkPHP to be released/sold as open source or commercial products.

        Friends who need server-side interface services but do not want to use that heavy framework can choose tp6, such as providing interfaces and management background for small programs. Or h5 small site, which is simple and easy to use, and the environment is simple to set up.

        Hope these help you and solve your problems.

 

Guess you like

Origin blog.csdn.net/ITMyFavorite/article/details/130454052