-
Notifications
You must be signed in to change notification settings - Fork 84
Using ChakraCore for win 10 UWP apps #26
Comments
Hi @SrinivasGourarum. In general, we currently recommend using Chakra instead of ChakraCore for UWP apps. ChakraCore is the part of Chakra that has no ties with Windows, and as you saw some of the Windows related APIs are missing (winrt/uwp projection, debugging). Specifically for debugging, our script debugging in Chakra (JsStartDebugging) is PDM-based, so that is not part of ChakraCore as well. However, we are actively working on a new set of debugging APIs in the JSRTDebugging branch. Note that this work is not finished yet and the API shape may change, so be cautious about taking dependencies. Do let us know your thoughts in case you've tried or plan to try the debugging APIs. The parse script as library work you experimented is part of the debugging effort. Limin |
I am assuming that once ChakraCore is released, we can have this feature(parse script as library) with Chakra as well. Meanwhile, in order to make our js files hidden from the user while debugging using Chakra for UWP apps on windows 10, we could replace the content of the js file (which we intend to hide while debugging script) with the base64 string of the serialized byte[]. byte[] serializeBuffer = JsSerializeScript(originalContent, buff, buffsize); This way we are able to hide the file from debugging. My question is if someone would be able to re-generate the original content of the file if they are able to access the base64Str? Do we need to have an additional encryption for the file? We intend to use ChakraCore for older windows versions like windows phone 8.1 and windows 8.1. Having the capability to debug the script and other debugging apis for memory usage will definitely add on to the debugging experience. |
I'm super glad to hear it! One of our purposes to open-source ChakraCore is to make it available for pre-Windows 10 OS as Chakra.dll is not there. As a quick status update for debugging, currently we have new debugging APIs in a PR against ChakraCore master. Profiling is something we don't have now but it's on our roadmap and we will definitely look into it. |
Thanks @liminzhu. We would continue to use Chakra for windows 10 as recommended. Also, is there any tentative timeframe around which we can expect ChakraCore to be released so that we can start taking dependencies? |
Sorry for the late response @SrinivasGourarum. Duly noted. we'll work on getting this API into Chakra and Windows. It probably will land in a Win10 insider preview build first, and then in the next windows release. We are very close to finish release/1.2 for ChakraCore (maybe just in a few weeks). For now you can build from the release/1.2 branch, or use the preview bits from our myget feed. |
Thanks @liminzhu. |
I was exploring using ChakraCore instead of Chakra for UWP apps. I was doing it to leverage the new JsRT API to parse script as library(agarwal-sandeep/ChakraCore@83b1bcf?diff=unified) which was merged into ChakraCore. After having added the ChakraCore.dll to the project, there were exceptions stating that the below APIs were undefined.
Is it recommended to use ChakraCore for UWP apps in windows 10? Or should we wait for the features added in ChakraCore to be available on Chakra which I believe happens with OS update?
Also script debugging seems to be not working with ChakraCore!!!
The text was updated successfully, but these errors were encountered: