File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -204,12 +204,15 @@ class IOSDebugService implements IDebugService {
204
204
205
205
private openDebuggingClient ( ) : IFuture < void > {
206
206
return ( ( ) => {
207
- var cmd = "open -a Safari " + this . getSafariPath ( ) . wait ( ) ;
207
+ let inspectorPath = this . getInspectorPath ( ) . wait ( ) ;
208
+ let inspectorApplicationPath = path . join ( inspectorPath , "NativeScript Inspector.app" ) ;
209
+ let inspectorSourceLocation = path . join ( inspectorPath , "Safari/Main.html" ) ;
210
+ let cmd = `open -a '${ inspectorApplicationPath } ' --args '${ inspectorSourceLocation } ' '${ this . $projectData . projectName } '` ;
208
211
this . $childProcess . exec ( cmd ) . wait ( ) ;
209
212
} ) . future < void > ( ) ( ) ;
210
213
}
211
214
212
- private getSafariPath ( ) : IFuture < string > {
215
+ private getInspectorPath ( ) : IFuture < string > {
213
216
return ( ( ) => {
214
217
var tnsIosPackage = "" ;
215
218
if ( this . $options . frameworkPath ) {
@@ -221,8 +224,8 @@ class IOSDebugService implements IDebugService {
221
224
var platformData = this . $platformsData . getPlatformData ( this . platform ) ;
222
225
tnsIosPackage = this . $npmInstallationManager . install ( platformData . frameworkPackageName ) . wait ( ) ;
223
226
}
224
- var safariPath = path . join ( tnsIosPackage , "WebInspectorUI/Safari/Main.html " ) ;
225
- return safariPath ;
227
+ var inspectorPath = path . join ( tnsIosPackage , "WebInspectorUI/" ) ;
228
+ return inspectorPath ;
226
229
} ) . future < string > ( ) ( ) ;
227
230
}
228
231
}
You can’t perform that action at this time.
0 commit comments