diff --git a/lib/services/android-debug-service.ts b/lib/services/android-debug-service.ts index 42e6ecf262..9caf19959f 100644 --- a/lib/services/android-debug-service.ts +++ b/lib/services/android-debug-service.ts @@ -1,4 +1,5 @@ import * as net from "net"; +import * as os from "os"; import Future = require("fibers/future"); import { sleep } from "../common/helpers"; import {ChildProcess} from "child_process"; @@ -236,7 +237,7 @@ class AndroidDebugService implements IDebugService { private startDebuggerClient(port: Number): IFuture { return (() => { - 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`); + this.$logger.info(`To start debugging, open the following URL in Chrome:${os.EOL}chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=localhost:${port}${os.EOL}`.cyan); }).future()(); } diff --git a/lib/services/ios-debug-service.ts b/lib/services/ios-debug-service.ts index 693fb95bb6..f2effd3498 100644 --- a/lib/services/ios-debug-service.ts +++ b/lib/services/ios-debug-service.ts @@ -2,6 +2,7 @@ import * as iOSDevice from "../common/mobile/ios/device/ios-device"; import * as net from "net"; import * as path from "path"; import * as log4js from "log4js"; +import * as os from "os"; import {ChildProcess} from "child_process"; import byline = require("byline"); @@ -203,7 +204,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`); + const commitSHA = "02e6bde1bbe34e43b309d4ef774b1168d25fd024"; // corresponds to 55.0.2883 Chrome version + this.$logger.info(`To start debugging, open the following URL in Chrome:${os.EOL}chrome-devtools://devtools/remote/serve_file/@${commitSHA}/inspector.html?experiments=true&ws=localhost:${this._socketProxy.options.port}${os.EOL}`.cyan); } else { this._socketProxy = this.$socketProxyFactory.createTCPSocketProxy(factory); this.openAppInspector(this._socketProxy.address()).wait();