简体   繁体   English

如何实现JavaScriptCore调试器?

[英]How to implement JavaScriptCore debugger?

JavaScriptCore contains debugger package which is written in c++. JavaScriptCore包含用c ++编写的调试器包。 This is the link of debugger package. 这是调试器包的链接

Can we use this debugger for debugging java script from eclipse or xocde, Any reference or sample implementation will be helpful. 我们可以使用此调试器从eclipse或xocde调试java脚本,任何参考或示例实现都会有所帮助。 Thanks 谢谢

The WebKit folks have recently moved the JavaScriptCore-specific portion of the WebKit Web Inspector (aka Safari's Web Inspector) into JavaScriptCore itself with the intent to allow remote debugging JSContext objects in iOS apps the same way you can debug UIWebView objects now. WebKit人员最近将WebKit Web Inspector(也称为Safari的Web Inspector)的JavaScriptCore特定部分移动到JavaScriptCore本身,目的是允许在iOS应用程序中远程调试JSContext对象,就像现在调试UIWebView对象一样。 This feature is supposed to ship with iOS 8. 此功能应该与iOS 8一起提供。

JavaScript debugging in the Web Inspector is actually built on top of JSC::Debugger so you can either adapt it or use it as a reference implementation. Web Inspector中的JavaScript调试实际上是在JSC :: Debugger之上构建的,因此您可以对其进行调整或将其用作参考实现。 The code lives here , but it seems that it won't work as-is without iOS 8 or OS X 10.10. 代码存在于此处 ,但似乎没有iOS 8或OS X 10.10,它将无法正常工作。 Still, it seems like a good starting place if you want to build your own debugger interface. 不过,如果你想构建自己的调试器接口,它似乎是一个很好的起点。

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

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