File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 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 {
6060 this . $options . debugBrk = true ;
6161 }
6262
63- if ( this . $options . debugBrk ) {
63+ if ( this . $options . debugBrk && ! this . $options . emulator ) {
6464 let cachedDeviceOption = this . $options . forDevice ;
6565 this . $options . forDevice = true ;
6666 this . $platformService . buildPlatform ( this . platform ) . wait ( ) ;
@@ -132,8 +132,10 @@ class AndroidDebugService implements IDebugService {
132132
133133 private startAppWithDebugger ( packageFile : string , packageName : string ) : IFuture < void > {
134134 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+ }
137139
138140 let port = this . $options . debugPort ;
139141
You can’t perform that action at this time.
0 commit comments