File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ class IOSDebugService implements IDebugService {
68
68
public debugStart ( ) : IFuture < void > {
69
69
return ( ( ) => {
70
70
this . $devicesService . initialize ( { platform : this . platform , deviceId : this . $options . device } ) . wait ( ) ;
71
- this . $devicesService . execute ( ( device : Mobile . IiOSDevice ) => this . debugBrkCore ( device ) ) . wait ( ) ;
71
+ this . $devicesService . execute ( ( device : Mobile . IiOSDevice ) => device . isEmulator ? this . emulatorDebugBrk ( ) : this . debugBrkCore ( device ) ) . wait ( ) ;
72
72
} ) . future < void > ( ) ( ) ;
73
73
}
74
74
@@ -112,6 +112,9 @@ class IOSDebugService implements IDebugService {
112
112
return ( ( ) => {
113
113
this . $devicesService . initialize ( { platform : this . platform , deviceId : this . $options . device } ) . wait ( ) ;
114
114
this . $devicesService . execute ( ( device : iOSDevice . IOSDevice ) => ( ( ) => {
115
+ if ( device . isEmulator ) {
116
+ return this . emulatorDebugBrk ( ) . wait ( ) ;
117
+ }
115
118
// we intentionally do not wait on this here, because if we did, we'd miss the AppLaunching notification
116
119
let deploy = this . $platformService . deployOnDevice ( this . platform ) ;
117
120
this . debugBrkCore ( device ) . wait ( ) ;
@@ -133,7 +136,7 @@ class IOSDebugService implements IDebugService {
133
136
private deviceStart ( ) : IFuture < void > {
134
137
return ( ( ) => {
135
138
this . $devicesService . initialize ( { platform : this . platform , deviceId : this . $options . device } ) . wait ( ) ;
136
- this . $devicesService . execute ( ( device : Mobile . IiOSDevice ) => this . deviceStartCore ( device ) ) . wait ( ) ;
139
+ this . $devicesService . execute ( ( device : Mobile . IiOSDevice ) => device . isEmulator ? this . emulatorStart ( ) : this . deviceStartCore ( device ) ) . wait ( ) ;
137
140
} ) . future < void > ( ) ( ) ;
138
141
}
139
142
You can’t perform that action at this time.
0 commit comments