@@ -40,7 +40,7 @@ export class WebKitDebugAdapter implements DebugProtocol.IDebugAdapter {
4040 private _webKitConnection : INSDebugConnection ;
4141 private _eventHandler : ( event : DebugProtocol . Event ) => void ;
4242 private _lastOutputEvent : OutputEvent ;
43- private _loggerFrontendHandler : LoggerHandler = args => this . fireEvent ( new OutputEvent ( ` › ${ args . message } \n` , args . type . toString ( ) ) ) ;
43+ private _loggerFrontendHandler : LoggerHandler = args => this . fireEvent ( new OutputEvent ( `${ args . message } \n` , args . type . toString ( ) ) ) ;
4444 private _request : DebugRequest ;
4545
4646 public constructor ( ) {
@@ -142,6 +142,8 @@ export class WebKitDebugAdapter implements DebugProtocol.IDebugAdapter {
142142 Services . extensionClient ( ) . analyticsLaunchDebugger ( { request : this . _request . isSync ? "sync" : args . request , platform : args . platform } ) ;
143143
144144 // Run CLI Command
145+ Services . logger ( ) . log ( `[NSDebugAdapter] Using tns CLI on path '${ this . _request . project . cli . path } '` , Tags . FrontendMessage ) ;
146+ Services . logger ( ) . log ( '[NSDebugAdapter] Running tns command...' , Tags . FrontendMessage ) ;
145147 let cliCommand : DebugResult ;
146148 if ( this . _request . isLaunch ) {
147149 cliCommand = this . _request . project . debug ( { stopOnEntry : this . _request . launchArgs . stopOnEntry } , this . _request . args . tnsArgs ) ;
@@ -161,14 +163,16 @@ export class WebKitDebugAdapter implements DebugProtocol.IDebugAdapter {
161163
162164 let promiseResolve = null ;
163165 let promise : Promise < void > = new Promise < void > ( ( res , rej ) => { promiseResolve = res ; } ) ;
166+ Services . logger ( ) . log ( '[NSDebugAdapter] Watching the tns CLI output to receive a connection token' , Tags . FrontendMessage ) ;
164167 // Attach to the running application
165168 cliCommand . tnsOutputEventEmitter . on ( 'readyForConnection' , ( connectionToken : string | number ) => {
166169 connectionToken = this . _request . isAndroid ? this . _request . androidProject . getDebugPortSync ( ) : connectionToken ;
167- Services . logger ( ) . log ( `Attaching to application on ${ connectionToken } ` ) ;
170+ Services . logger ( ) . log ( `[NSDebugAdapter] Attaching to application on ${ connectionToken } ` , Tags . FrontendMessage ) ;
168171 let connection : INSDebugConnection = this . _request . isAndroid ? new AndroidConnection ( ) : new IosConnection ( ) ;
169172 this . setConnection ( connection ) ;
170173 let attachPromise = this . _request . isAndroid ? ( < AndroidConnection > connection ) . attach ( < number > connectionToken , 'localhost' ) : ( < IosConnection > connection ) . attach ( < string > connectionToken ) ;
171174 attachPromise . then ( ( ) => {
175+ Services . logger ( ) . log ( `[NSDebugAdapter] Successfully attached to the target application'` , Tags . FrontendMessage ) ;
172176 // Send InitializedEvent
173177 this . fireEvent ( new InitializedEvent ( ) ) ;
174178 promiseResolve ( ) ;
0 commit comments