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
Copy file name to clipboardExpand all lines: docs/man_pages/project/testing/debug-android.md
+7
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,11 @@ Deploy in Genymotion, run the app and stop at the first code statement | `$ tns
10
10
Attach the debug tools to a running app on device | `$ tns debug android --start [--device <Device ID>] [--debug-port <port>] [--timeout <timeout>]`
11
11
Attach the debug tools to a running app in the native emulator | `$ tns debug android --start --emulator [<Emulator Options>] [--timeout <timeout>]`
12
12
Attach the debug tools to a running app in Genymotion | `$ tns debug android --start --geny <Geny Name> [--print-app-output] [--timeout <timeout>]`
13
+
Livesync on device, run the app start Chrome DevTools, and attach the debugger | `$ tns debug android --no-rebuild`
14
+
Livesync on device, run the app and stop at the first code statement | `$ tns debug android --no-rebuild --debug-brk [--device <Device ID>] [--debug-port <port>] [--timeout <timeout>]`
15
+
Livesync in the native emulator, run the app and stop at the first code statement | `$ tns debug android --no-rebuild --debug-brk --emulator [<Emulator Options>] [--timeout <timeout>]`
16
+
Livesync in Genymotion, run the app and stop at the first code statement | `$ tns debug android --no-rebuild --debug-brk --geny <Geny Name> [--timeout <timeout>]`
17
+
Livesync on device/emulator, run the app, start and attach the debugger. Refresh everything automatically upon changes | `$ tns debug android --no-rebuild --watch [--debug-brk]`
13
18
Retrieve the device port on which you are debugging | `$ tns debug android [--device <Device ID>] --get-port`
14
19
Detach the debug tools | `$ tns debug android --stop`
15
20
@@ -25,6 +30,8 @@ Debugs your project on a connected device, in a native emulator or in Genymotion
25
30
*`--get-port` - Retrieves the port on which you are debugging your application.
26
31
*`--debug-port` - Sets a new port on which to attach the debug tools.
27
32
*`--timeout` - Sets the number of seconds that the NativeScript CLI will wait for the debugger to boot. If not set, the default timeout is 90 seconds.
33
+
*`--no-rebuild` - Livesyncs to device/emulator when possible. Otherwise builds and deploys the application.
34
+
*`--watch` - If set, when you save changes to the project, changes are automatically synchronized to the connected device and the debugger is restarted. This option is available only when using `--no-rebuild`.
28
35
29
36
### Attributes
30
37
*`<Device ID>` is the index or name of the target device as listed by `$ tns device`
Copy file name to clipboardExpand all lines: docs/man_pages/project/testing/debug-ios.md
+6
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,10 @@ Deploy on device, run the app and stop at the first code statement | `$ tns debu
8
8
Deploy in the iOS Simulator, run the app and stop at the first code statement | `$ tns debug ios --debug-brk --emulator [<Emulator Options>] [--no-client]`
9
9
Attach the debug tools to a running app on device | `$ tns debug ios --start [--device <Device ID>] [--no-client]`
10
10
Attach the debug tools to a running app in the iOS Simulator | `$ tns debug ios --start --emulator [<Emulator Options>] [--no-client]`
11
+
Livesync on device, run the app, start Safari Web Inspector and attach the debugger | `$ tns debug ios --no-rebuild`
12
+
Livesync on device, run the app and stop at the first code statement | `$ tns debug ios --no-rebuild --debug-brk [--device <Device ID>] [--no-client]`
13
+
Livesync in the iOS Simulator, run the app and stop at the first code statement | `$ tns debug ios --no-rebuild --debug-brk --emulator [<Emulator Options>] [--no-client]`
14
+
Livesync on device/simulator, run the app, start and attach the debugger. Refresh everything automatically upon changes | `$ tns debug ios --no-rebuild --watch [--debug-brk]`
11
15
12
16
Debugs your project on a connected device or in the iOS Simulator. <% if(isHtml) { %>Any debugging traffic is forwarded on port 8080 from the device to the local machine.<% } %>
13
17
@@ -22,6 +26,8 @@ Debugs your project on a connected device or in the iOS Simulator. <% if(isHtml)
22
26
*`--emulator` - Indicates that you want to debug your app in the iOS simulator.
23
27
*`--no-client` - If set, the NativeScript CLI attaches the debug tools but does not launch the developer tools in Safari.
24
28
*`--timeout` - Sets the number of seconds that NativeScript CLI will wait for the debugger to boot. If not set, the default timeout is 90 seconds.
29
+
*`--no-rebuild` - Livesyncs to device/emulator when possible. Otherwise builds and deploys the application.
30
+
*`--watch` - If set, when you save changes to the project, changes are automatically synchronized to the connected device and the debugger is restarted. This option is available only when using `--no-rebuild`.
25
31
26
32
### Attributes
27
33
*`<Device ID>` is the index or name of the target device as listed by `$ tns device`
Copy file name to clipboardExpand all lines: docs/man_pages/project/testing/livesync.md
+2-1
Original file line number
Diff line number
Diff line change
@@ -3,14 +3,15 @@ livesync
3
3
4
4
Usage | Synopsis
5
5
------|-------
6
-
General | `$ tns livesync <Platform>`
6
+
General | `$ tns livesync [<Platform>]`
7
7
8
8
Synchronizes the latest changes in your project to devices.
9
9
10
10
### Attributes
11
11
`<Platform>` is the target mobile platform to which you want to synchronize your changes. <% if(isHtml) { %>If you have connected only Android or only iOS devices, you can omit setting the target platform. If you have connected devices of multiple platforms, you must specify the target platform. <% } %>You can set the following target platforms.
12
12
*`android` - Synchronizes the latest changes in your project to connected Android devices.
13
13
*`ios` - Synchronizes the latest changes in your project to connected iOS devices.
14
+
* All installed platforms and the corresponding devices/emulators will be synchronized when started without a platform.
0 commit comments