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

Can Yii2's debug toolbar only monitor ajax requests?

WBOY
WBOYOriginal
2016-07-06 13:52:25983browse

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

Statement:
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