Skip to content

Enable evaluating in Chrome Console (#3405) #4713

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 18, 2017
Merged

Conversation

vakrilov
Copy link
Contributor

This is cherrypick of the commits by #3405 which where lost in the 2.5 -> 3.0 migration.

@pkoleva Can you verify the Chrome console eval works with this fix?

Chrome calls compileScript method when an expression is evaluated in the console. So to enable the console evaluate add an empty compileScript implementation.
Also send an Runtime.executionContextCreated which is needed for Console evaluation.
Both of the command and the event do not exist in the Webkit protocol, so we cannot use InspectorBackendCommands definition file
@ghost ghost assigned vakrilov Aug 18, 2017
@ghost ghost added the in progress label Aug 18, 2017
@ns-bot
Copy link

ns-bot commented Aug 18, 2017

Please sign CLA at http://www.nativescript.org/cla

@ns-bot ns-bot added the cla: no label Aug 18, 2017
@pkoleva
Copy link

pkoleva commented Aug 18, 2017

Related to NativeScript/ios-jsc#787

@vakrilov vakrilov requested a review from pkoleva August 18, 2017 12:55
@vakrilov vakrilov merged commit 121ad5d into master Aug 18, 2017
@vakrilov vakrilov deleted the chrome-console-eval-fix branch August 18, 2017 12:56
@ghost ghost removed the in progress label Aug 18, 2017
@bundyo
Copy link
Contributor

bundyo commented Aug 21, 2017

This also fixes the previously non-working Watch expressions.

@lock
Copy link

lock bot commented Aug 27, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Aug 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants