简体   繁体   English

如何在iPhone模拟器中查看嵌入式Web应用程序的启动日志记录

[英]How can I see the startup logging of an embedded web application in my iphone simulator

I am debugging a web application with javascript (AngularJS) embedded inside an iPhone app. 我正在使用iPhone应用程序中嵌入的javascript(AngularJS)调试Web应用程序。 I'm pretty sure the angular app outputs some logging at startup, but I cannot figure out how I can access it. 我很确定angular应用在启动时会输出一些日志,但是我不知道如何访问它。

Problem is that if I attach the web inspector from Safari to my iPhone simulator, it is already too late, because the app has already started. 问题是,如果我将Safari中的Web检查器附加到我的iPhone模拟器上,已经太迟了,因为该应用程序已经启动。

How can I get to those logs? 我如何获得这些日志?

document.location.reload(); does the trick just fine. 做到这一点就好了。

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

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