我们如何查看带有ajax请求的symfony dump()输出? [英] how can we view symfony dump() output with ajax request?

查看:88
本文介绍了我们如何查看带有ajax请求的symfony dump()输出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我的问题是,我们可以使用正常的http请求查看symfony dump()函数的输出,但可以使用查看输出ajax 请求?

解决方案

在向浏览器发出请求之前,先在浏览器中打开开发者工具*。页。单击网络选项卡,然后执行发出请求的操作。单击请求(在下面的chrome示例中圈出),然后选择预览标签,您将看到所有输出。



* 使用Chrome通过键盘打开devtools: Ctrl + Shift + i 或从菜单>更多工具>开发人员工具




Hi my question is that we can view the output of symfony dump() function with normal http request, but can we view the output with ajax request?

解决方案

Open the developer tools* in your browser before you make the request on your page. Click on the networks tab then perform the action that makes the request. Click on the request (circled in the chrome example below) and select the Preview tab and you'll see all the output.

* Using Chrome open devtools with the keyboard: Ctrl+Shift+i or from the menu > More Tools > Developer Tools

Here's an overview of Chrome's devtools. You can breeze through the videos in < 1hr.

Here's a picture:

这篇关于我们如何查看带有ajax请求的symfony dump()输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆