Skip to content

New debugging APIs - #926

Merged
chakrabot merged 1 commit into
masterfrom
JsRTDebugging
May 11, 2016
Merged

New debugging APIs#926
chakrabot merged 1 commit into
masterfrom
JsRTDebugging

Conversation

@agarwal-sandeep

Copy link
Copy Markdown
Collaborator

This PR adds debugging APIs to ChakraCore and test debugger to ch.

Sample tests are under test\Debugger. Once this PR is merged next PR will port existing PDM based debugger tests to run with ch/ChakraCore. I have already run those tests and don’t see any issue.

New APIs are prefixed with JsDiag to group them under a pseudo namespace, in future if we plan to have other diagnostic APIs this will help.
There are a total of 17 JsDiag* APIs. Currently the APIs on only exposed in ChakraCore once we have windows review this will be exposed in Chakra as well.

With this change the binary size of ChakraCore/Chakra increase by about a max of 19KB across all architectures which is acceptable.

To demonstrate the use, capabilities and completeness of these APIs Node-ChakraCore have been enhanced to provide debugging support with VSCode (no change to VSCode required). ChakraCore code in Node-ChakraCore is synced with this PR commit. The code is available at https://github.com/agarwal-sandeep/node-chakracore/tree/debugging

There is some more investigation required to make Node-Inspector work with Node-ChakraCore. I am working on it.

@agarwal-sandeep

Copy link
Copy Markdown
Collaborator Author

@akroshg @Yongqu @liminzhu @aruneshchandra please take a look

{
"scriptId": 3,
"fileName": "dummyfilename.js",
"lineCount": 1,

@akroshg akroshg May 10, 2016

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is no scripttype for .js file or we are not logging it? #Resolved

@agarwal-sandeep agarwal-sandeep May 10, 2016

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Script type is only for dynamic script which doesn't have a filename. For such scripts filename is replaced with scriptType #Closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants