Skip to content

Commit 7330e88

Browse files
committed
Open specific version of Chrome Dev Tools
Otherwise we would have to update our logic on every Chrome update
1 parent 052a397 commit 7330e88

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/services/android-debug-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ class AndroidDebugService implements IDebugService {
236236

237237
private startDebuggerClient(port: Number): IFuture<void> {
238238
return (() => {
239-
this.$logger.info(`To start debugging, open the following URL in Chrome:\nchrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=localhost:${port}\n`);
239+
this.$logger.info(`To start debugging, open the following URL in Chrome:\nchrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=localhost:${port}\n`.cyan);
240240
}).future<void>()();
241241
}
242242

lib/services/ios-debug-service.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ class IOSDebugService implements IDebugService {
203203
if (this.$options.chrome) {
204204
this._socketProxy = this.$socketProxyFactory.createWebSocketProxy(factory);
205205

206-
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`);
206+
let commitSHA = "02e6bde1bbe34e43b309d4ef774b1168d25fd024"; // corresponds to 55.0.2883 Chrome version
207+
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);
207208
} else {
208209
this._socketProxy = this.$socketProxyFactory.createTCPSocketProxy(factory);
209210
this.openAppInspector(this._socketProxy.address()).wait();

0 commit comments

Comments
 (0)