Home > Backend Development > PHP Tutorial > Can Yii2's debug toolbar only monitor ajax requests?

Can Yii2's debug toolbar only monitor ajax requests?

WBOY
Release: 2016-07-06 13:52:25
Original
1007 people have browsed it

Can the debugging toolbar of yii2 only monitor ajax requests?
For example, a form I submitted is an ajax request, and the server returns me json data after a series of processing including database queries and other operations.
I want to view the sql operated by this ajax request through the debug toolbar. What should I do if I encounter errors?
I only know now that the debug toolbar can only monitor each request to refresh the page. Is it impossible to monitor if the page does not refresh?

Reply content:

Can the debugging toolbar of yii2 only monitor ajax requests?
For example, a form I submitted is an ajax request, and the server returns me json data after a series of processing including database queries and other operations.
I want to view the sql operated by this ajax request through the debug toolbar. What should I do if I encounter errors?
I only know now that the debug toolbar can only monitor each request to refresh the page. Is it impossible to monitor if the page does not refresh?

Understood, you can see the ajax request data by directly accessing "domain name/debug/default/index" after requesting

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template