File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ class AndroidDebugService implements IDebugService {
60
60
this . $options . debugBrk = true ;
61
61
}
62
62
63
- if ( this . $options . debugBrk ) {
63
+ if ( this . $options . debugBrk && ! this . $options . emulator ) {
64
64
let cachedDeviceOption = this . $options . forDevice ;
65
65
this . $options . forDevice = true ;
66
66
this . $platformService . buildPlatform ( this . platform ) . wait ( ) ;
@@ -132,8 +132,10 @@ class AndroidDebugService implements IDebugService {
132
132
133
133
private startAppWithDebugger ( packageFile : string , packageName : string ) : IFuture < void > {
134
134
return ( ( ) => {
135
- this . device . applicationManager . uninstallApplication ( packageName ) . wait ( ) ;
136
- this . device . applicationManager . installApplication ( packageFile ) . wait ( ) ;
135
+ if ( ! this . $options . emulator ) {
136
+ this . device . applicationManager . uninstallApplication ( packageName ) . wait ( ) ;
137
+ this . device . applicationManager . installApplication ( packageFile ) . wait ( ) ;
138
+ }
137
139
138
140
let port = this . $options . debugPort ;
139
141
You can’t perform that action at this time.
0 commit comments