Skip to content

Commit 26838fe

Browse files
committed
fix vscode debugger not attaching and hanging android process when attempting to connect too early to device, before the application has started
1 parent 13bc669 commit 26838fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/NsCliService.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ export class AndroidProject extends NSProject {
251251
that.emit('TNS.outputMessage', data.toString(), 'log');
252252
that.writeToTnsOutputFile(strData);
253253
if (!launched) {
254-
if (args.request === "launch" && ((strData.indexOf('# NativeScript Debugger started #') > -1) || strData.indexOf('Successfully synced application') > -1)) {
254+
if (args.request === "launch" && strData.indexOf('# NativeScript Debugger started #') > -1) {
255255
launched = true;
256256
//wait a little before trying to connect, this gives a changes for adb to be able to connect to the debug socket
257257
setTimeout(() => {

0 commit comments

Comments
 (0)