You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Emit deviceIdentifier in debuggerAttached event (#3104)
`debuggerAttached` event should emit full information required for debugging. However, the deviceIdentifier is missing, so add it.
Update PublicAPI.md according to latest changes.
The type of arguments that you can pass are described below:
@@ -515,6 +519,16 @@ interface IDebugOptions {
515
519
* Default value is 02e6bde1bbe34e43b309d4ef774b1168d25fd024 which corresponds to 55.0.2883 Chrome version
516
520
*/
517
521
devToolsCommit?: string;
522
+
523
+
/**
524
+
* Defines if Chrome DevTools should be used for debugging.
525
+
*/
526
+
chrome?: boolean;
527
+
528
+
/**
529
+
* Defines if thе application is already started on device.
530
+
*/
531
+
start?: boolean;
518
532
}
519
533
```
520
534
@@ -536,7 +550,7 @@ const debugOptions = {
536
550
};
537
551
538
552
tns.debugService.debug(debugData, debugOptions)
539
-
.then(url=>console.log(`Open the following url in Chrome DevTools: ${url}`))
553
+
.then(debugInfo=>console.log(`Open the following url in Chrome DevTools: ${debugInfo.url}, port is: ${debugInfo.port} and deviceIdentifier is: ${debugInfo.deviceIdentifier}`))
540
554
.catch(err=>console.log(`Unable to start debug operation, reason: ${err.message}.`));
541
555
```
542
556
@@ -839,12 +853,12 @@ tns.liveSyncService.on("userInteractionNeeded", data => {
839
853
});
840
854
```
841
855
842
-
* debuggerAttached - raised whenever CLI attaches the backend debugging socket and a frontend debugging client may be attached. The event is raised with an object containing the device's identifier:
856
+
* debuggerAttached - raised whenever CLI attaches the backend debugging socket and a frontend debugging client may be attached. The event is raised with an object containing the device's identifier, url for debugging and port
console.log(`Backend client connected, frontend client may be connected at ${debugInfo.url}`);
861
+
console.log(`Backend client connected, frontend client may be connected at ${debugInfo.url} to debug app on device ${debugInfo.deviceIdentifier}. Port is: ${debugInfo.port}`);
0 commit comments