This repository was archived by the owner on Feb 2, 2021. It is now read-only.
File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -89,9 +89,6 @@ export class IOSApplicationManager implements Mobile.IDeviceApplicationManager {
89
89
return ( ( ) => {
90
90
this . stopApplication ( applicationId ) . wait ( ) ;
91
91
this . runApplicationCore ( applicationId ) . wait ( ) ;
92
- if ( ! this . $options . watch ) {
93
- this . _gdbServer . destroy ( ) ;
94
- }
95
92
} ) . future < void > ( ) ( ) ;
96
93
}
97
94
Original file line number Diff line number Diff line change @@ -1131,8 +1131,12 @@ export class GDBServer implements Mobile.IGDBServer {
1131
1131
this . send ( "vCont;c" ) ;
1132
1132
} else {
1133
1133
if ( this . $options . justlaunch ) {
1134
- // Disconnecting the debugger closes the socket and allows the process to quit
1135
- this . sendCore ( this . encodeData ( "vCont;c" ) ) ;
1134
+ if ( this . $options . watch ) {
1135
+ this . sendCore ( this . encodeData ( "vCont;c" ) ) ;
1136
+ } else {
1137
+ // Disconnecting the debugger closes the socket and allows the process to quit
1138
+ this . sendCore ( this . encodeData ( "D" ) ) ;
1139
+ }
1136
1140
} else {
1137
1141
this . socket . pipe ( new GDBStandardOutputAdapter ( ) ) . pipe ( process . stdout ) ;
1138
1142
this . socket . pipe ( new GDBSignalWatcher ( ) ) ;
You can’t perform that action at this time.
0 commit comments