Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to implement JavaScriptCore debugger?

JavaScriptCore contains debugger package which is written in 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. Thanks

like image 844
Sanjay Jain Avatar asked Dec 10 '13 10:12

Sanjay Jain


People also ask

Can you debug JavaScript in Visual Studio?

Go to Tools -> Options -> Debugging -> General and turn on the setting Enable JavaScript Debugging for ASP.NET (Chrome, Edge and IE). Then once you will hit "F5". Using above option you can now debug both JavaScript and TypeScript directly in Visual Studio when using Google Chrome or Edge as a browser.

How do I debug JavaScript in HTML?

Start debugging Open the HTML file that references the JavaScript to debug or select the HTML file in the Project tool window. From the context menu of the editor or the selection, choose Debug <HTML_file_name>.

What is JavaScript debug terminal?

JavaScript Debug Terminal# In a similar way to auto attach, the JavaScript Debug Terminal will automatically debug any Node. js process you run in it. You can create a Debug Terminal by running the Debug: Create JavaScript Debug Terminal command from the Command Palette ( kbs(workbench.


1 Answers

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. This feature is supposed to ship with 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. The code lives here, but it seems that it won't work as-is without iOS 8 or OS X 10.10. Still, it seems like a good starting place if you want to build your own debugger interface.

like image 167
Tayschrenn Avatar answered Sep 25 '22 01:09

Tayschrenn