Chakracore: F12 dev tools for ChakraCore

Created on 9 Sep 2016  路  5Comments  路  Source: chakra-core/ChakraCore

Hey,

I'm wondering if it's possible to use F12 debug tool for debugging a desktop application (OSX) with ChakraCore on board

Question

Most helpful comment

We're interested in improving this as well, although we don't have a firm plan of the exact approach. Ideally, we'd like something like the debugging experience for any other executable (e.g. by using lldb and enabling it via a plugin to have specific knowledge about the JS frames). If you work hard enough to understand what the engine is doing, a normal debugger can still be useful as long as you have the debug symbols from the binaries you're linking against.

But that's an engine-execution-level debugging experience (which is more useful for developing Chakra than for debugging JS code, assuming there are no bugs in the engine which are getting in the way of you debugging the JS), so it's definitely understandable to want a script-level debugger. Again, no firm plans for that.

All 5 comments

F12 Dev Tools are a part of Edge and are designed for debugging web pages in Edge (which unfortunately means they are only useful on Windows in the Edge browser, and not for ChakraCore in general). If you just need to debug the JavaScript in a desktop application, there might be other options available. Can you tell us more about the desktop application you're running?

@agarwal-sandeep who is working on Jsrt Debugging APIs who might have some context.

@dilijev Thanks for your response! I'm just playing around with ChakraCore (building a simple bridge to manipulate OS X UI using JS). Would be nice if at some point it'll be possible to use some external tools for debugging JS code in apps with embedded ChakraCore.

We're interested in improving this as well, although we don't have a firm plan of the exact approach. Ideally, we'd like something like the debugging experience for any other executable (e.g. by using lldb and enabling it via a plugin to have specific knowledge about the JS frames). If you work hard enough to understand what the engine is doing, a normal debugger can still be useful as long as you have the debug symbols from the binaries you're linking against.

But that's an engine-execution-level debugging experience (which is more useful for developing Chakra than for debugging JS code, assuming there are no bugs in the engine which are getting in the way of you debugging the JS), so it's definitely understandable to want a script-level debugger. Again, no firm plans for that.

Hi,
Is this is possible now "external tools for debugging JS code in desktop apps with embedded ChakraCore?"

I am trying to debug Javascript of windows desktop application in Windows Machine?

Thanks,
Pallam

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gustavopinto picture gustavopinto  路  3Comments

atefshehata picture atefshehata  路  3Comments

obastemur picture obastemur  路  4Comments

crdumoul picture crdumoul  路  4Comments

stefanpenner picture stefanpenner  路  5Comments