diff --git a/docs/man_pages/project/testing/debug-android.md b/docs/man_pages/project/testing/debug-android.md index 56b940a82d..0e9a6e0607 100644 --- a/docs/man_pages/project/testing/debug-android.md +++ b/docs/man_pages/project/testing/debug-android.md @@ -10,6 +10,11 @@ Deploy in Genymotion, run the app and stop at the first code statement | `$ tns Attach the debug tools to a running app on device | `$ tns debug android --start [--device ] [--debug-port ] [--timeout ]` Attach the debug tools to a running app in the native emulator | `$ tns debug android --start --emulator [] [--timeout ]` Attach the debug tools to a running app in Genymotion | `$ tns debug android --start --geny [--print-app-output] [--timeout ]` +Livesync on device, run the app start Chrome DevTools, and attach the debugger | `$ tns debug android --no-rebuild` +Livesync on device, run the app and stop at the first code statement | `$ tns debug android --no-rebuild --debug-brk [--device ] [--debug-port ] [--timeout ]` +Livesync in the native emulator, run the app and stop at the first code statement | `$ tns debug android --no-rebuild --debug-brk --emulator [] [--timeout ]` +Livesync in Genymotion, run the app and stop at the first code statement | `$ tns debug android --no-rebuild --debug-brk --geny [--timeout ]` +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]` Retrieve the device port on which you are debugging | `$ tns debug android [--device ] --get-port` Detach the debug tools | `$ tns debug android --stop` @@ -25,6 +30,8 @@ Debugs your project on a connected device, in a native emulator or in Genymotion * `--get-port` - Retrieves the port on which you are debugging your application. * `--debug-port` - Sets a new port on which to attach the debug tools. * `--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. +* `--no-rebuild` - Livesyncs to device/emulator when possible. Otherwise builds and deploys the application. +* `--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`. ### Attributes * `` is the index or name of the target device as listed by `$ tns device` diff --git a/docs/man_pages/project/testing/debug-ios.md b/docs/man_pages/project/testing/debug-ios.md index f449a565d1..47dd020d19 100644 --- a/docs/man_pages/project/testing/debug-ios.md +++ b/docs/man_pages/project/testing/debug-ios.md @@ -8,6 +8,10 @@ Deploy on device, run the app and stop at the first code statement | `$ tns debu Deploy in the iOS Simulator, run the app and stop at the first code statement | `$ tns debug ios --debug-brk --emulator [] [--no-client]` Attach the debug tools to a running app on device | `$ tns debug ios --start [--device ] [--no-client]` Attach the debug tools to a running app in the iOS Simulator | `$ tns debug ios --start --emulator [] [--no-client]` +Livesync on device, run the app, start Safari Web Inspector and attach the debugger | `$ tns debug ios --no-rebuild` +Livesync on device, run the app and stop at the first code statement | `$ tns debug ios --no-rebuild --debug-brk [--device ] [--no-client]` +Livesync in the iOS Simulator, run the app and stop at the first code statement | `$ tns debug ios --no-rebuild --debug-brk --emulator [] [--no-client]` +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]` 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.<% } %> @@ -22,6 +26,8 @@ Debugs your project on a connected device or in the iOS Simulator. <% if(isHtml) * `--emulator` - Indicates that you want to debug your app in the iOS simulator. * `--no-client` - If set, the NativeScript CLI attaches the debug tools but does not launch the developer tools in Safari. * `--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. +* `--no-rebuild` - Livesyncs to device/emulator when possible. Otherwise builds and deploys the application. +* `--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`. ### Attributes * `` is the index or name of the target device as listed by `$ tns device` diff --git a/docs/man_pages/project/testing/livesync.md b/docs/man_pages/project/testing/livesync.md index 1ff1239ebd..1fbabc2c07 100644 --- a/docs/man_pages/project/testing/livesync.md +++ b/docs/man_pages/project/testing/livesync.md @@ -3,7 +3,7 @@ livesync Usage | Synopsis ------|------- -General | `$ tns livesync ` +General | `$ tns livesync []` Synchronizes the latest changes in your project to devices. @@ -11,6 +11,7 @@ Synchronizes the latest changes in your project to devices. `` 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. * `android` - Synchronizes the latest changes in your project to connected Android devices. * `ios` - Synchronizes the latest changes in your project to connected iOS devices. +* All installed platforms and the corresponding devices/emulators will be synchronized when started without a platform. <% if(isHtml) { %> ### Command Limitations