Skip to content

Commit 5e516e9

Browse files
Fatme HavaluovaFatme Havaluova
Fatme Havaluova
authored and
Fatme Havaluova
committed
Fix tns debug ios --emulator
1 parent c4e6318 commit 5e516e9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/services/ios-debug-service.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,14 @@ class IOSDebugService implements IDebugService {
7676
this.$platformService.buildPlatform(this.platform).wait();
7777
let emulatorPackage = this.$platformService.getLatestApplicationPackageForEmulator(platformData).wait();
7878

79-
let child_process = this.$iOSEmulatorServices.startEmulator(emulatorPackage.packageName, { waitForDebugger: true, captureStdin: true, args: "--nativescript-debug-brk" }).wait();
79+
let child_process = this.$iOSEmulatorServices.startEmulator(emulatorPackage.packageName, { waitForDebugger: true, captureStdin: true,
80+
args: "--nativescript-debug-brk", appId: this.$projectData.projectId }).wait();
8081
let lineStream = byline(child_process.stdout);
8182

8283
lineStream.on('data', (line: NodeBuffer) => {
8384
let lineText = line.toString();
84-
if(lineText && _.startsWith(lineText, emulatorPackage.packageName)) {
85-
let pid = _.trimLeft(lineText, emulatorPackage.packageName + ": ");
85+
if(lineText && _.startsWith(lineText, this.$projectData.projectId)) {
86+
let pid = _.trimLeft(lineText, this.$projectData.projectId + ": ");
8687

8788
this.$childProcess.exec(`lldb -p ${pid} -o "process continue"`);
8889
} else {

0 commit comments

Comments
 (0)