Skip to content

Commit 593bafb

Browse files
committed
Fix debugger hangs if build of app fails
We wait for port to attach from the CLI and if the port is null we stop the attach process. If the CLI exit with non zero code we send empty port so the debugger is stopped. Now stop debugging each time CLI exits when it's in initial start state.
1 parent fdc029c commit 593bafb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/buildService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ export class BuildService {
7676
const errorMessage = `The tns command finished its execution with code ${code}`;
7777

7878
this._logger.log(errorMessage);
79-
80-
res();
8179
}
80+
81+
res();
8282
});
8383
}
8484

0 commit comments

Comments
 (0)