Skip to content

Open specific version of Chrome Dev Tools #2392

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
Jan 10, 2017

Conversation

KristinaKoeva
Copy link
Contributor

Otherwise we would have to update our logic on every Chrome update

Copy link
Contributor

@rosen-vladimirov rosen-vladimirov left a comment

Choose a reason for hiding this comment

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

Minor suggestions.

@@ -203,7 +203,8 @@ class IOSDebugService implements IDebugService {
if (this.$options.chrome) {
this._socketProxy = this.$socketProxyFactory.createWebSocketProxy(factory);

this.$logger.info(`To start debugging, open the following URL in Chrome:\nchrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=localhost:${this._socketProxy.options.port}\n`);
let commitSHA = "02e6bde1bbe34e43b309d4ef774b1168d25fd024"; // corresponds to 55.0.2883 Chrome version
Copy link
Contributor

Choose a reason for hiding this comment

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

you can extract the variable to private static field or const at the top of the file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I kind of disagree to move it at the top because it is only used in this method. Are you OK with the current version ? It is still a local variable but it's now a const.

@@ -203,7 +203,8 @@ class IOSDebugService implements IDebugService {
if (this.$options.chrome) {
this._socketProxy = this.$socketProxyFactory.createWebSocketProxy(factory);

this.$logger.info(`To start debugging, open the following URL in Chrome:\nchrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=localhost:${this._socketProxy.options.port}\n`);
let commitSHA = "02e6bde1bbe34e43b309d4ef774b1168d25fd024"; // corresponds to 55.0.2883 Chrome version
this.$logger.info(`To start debugging, open the following URL in Chrome:\nchrome-devtools://devtools/remote/serve_file/@${commitSHA}/inspector.html?experiments=true&ws=localhost:${this._socketProxy.options.port}\n`.cyan);
Copy link
Contributor

Choose a reason for hiding this comment

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

os.EOL instead of \n maybe.

Otherwise we would have to update our logic on every Chrome update
@KristinaKoeva KristinaKoeva merged commit 6d6fbe8 into release Jan 10, 2017
@KristinaKoeva KristinaKoeva deleted the KristinaKoeva/Chrome branch January 10, 2017 08:20
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.

3 participants