简体   繁体   English

chrome调试该怎么做?

[英]How to do chrome debugging?

I have developed a website. 我已经开发了一个网站。 Some clients are getting the issue on chrome while opening a website. 一些客户在打开网站时遇到了chrome问题。 It's working on other search engines like firefox etc. How should I debug it in inspect mode(how to take his/her MOBILE(only) )on support? 它可以在其他搜索引擎(如firefox等)上运行。如何在支持的检查模式下调试它(如何使用他/她的MOBILE(仅))? I know one solution which USB debugging but we can't take clients phone and do debugging. 我知道一种解决方案,可以进行USB调试,但是我们不能接客户电话进行调试。 Is there any solution so that we can take his/her phone on inspect mode remotely? 有什么解决方案可以使我们的手机远程进入检查模式吗?

One way that you can try is trying to plug error tracker on your website. 您可以尝试的一种方法是尝试在您的网站上插入错误跟踪器。

One of them is Sentry https://sentry.io (Its free, but if you want to use it with more volume and features, you have to pay for it.) 其中之一是Sentry https://sentry.io (它是免费的,但是如果要使用更多的体积和功能,则必须付费。)

The way it works is you put sentry raven.js on your html head block 它的工作方式是将哨兵raven.js放在html头块上

<script src="https://cdn.ravenjs.com/3.24.2/raven.min.js" crossorigin="anonymous"></script>

and then configure it by attaching the sentry api key (you can look at their documentation as well, they provide you with some code examples https://docs.sentry.io/clients/javascript/ ). 然后通过附加哨兵api密钥进行配置(您也可以查看他们的文档,他们为您提供了一些代码示例https://docs.sentry.io/clients/javascript/ )。

And after you can ask the client to browse your website using their device. 之后,您可以要求客户使用他们的设备浏览您的网站。 By default sentry will track their session and show it in your sentry dashboard, including all of the javascript error and console output (just like when you do when you open inspect mode in your web browser). 默认情况下,哨兵将跟踪他们的会话并将其显示在哨兵仪表板中,包括所有javascript错误和控制台输出(就像您在网络浏览器中打开检查模式时所做的一样)。 so you can try to debug the problem without having to take your client device. 因此您可以尝试调试问题,而不必带上客户端设备。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM