-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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
7330e88
to
9df13ef
Compare
Otherwise we would have to update our logic on every Chrome update