[英]How can I debug Javascript code along with IOS App code?
In my iPhone app I have few JavaScript (.js) files and using JavaScript functions I am loading UIWebview contents. 在我的iPhone应用程序中,我只有几个JavaScript(.js)文件,并且正在使用JavaScript函数加载UIWebview内容。
How can I debug code of JavaScript file while debugging my iPhone App code written in Objective C? 在调试用Objective C编写的iPhone App代码时,如何调试JavaScript文件的代码?
Check out the Weinre project and see if it meets your needs: http://people.apache.org/~pmuellr/weinre/docs/latest/ 查看Weinre项目,看看它是否满足您的需求: http : //people.apache.org/~pmuellr/weinre/docs/latest/
I have used it in iOS projects with good success. 我已经在iOS项目中成功使用了它。 You won't necessarily get breakpoint-style debugging, but you can inspect javascript objects that are logged to the console, look at the document markup (via the webkit dev tools) and more.
您不一定会获得断点样式的调试,但是您可以检查记录到控制台的javascript对象,查看文档标记(通过webkit开发工具),等等。 It has been very helpful.
这非常有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.