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
+6-7
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,9 @@ debug android
3
3
4
4
Usage | Synopsis
5
5
---|---
6
-
Deploy on device, run the app and stop at the first breakpoint | `$ tns debug android --debug-brk [--device <Device ID>] [--debug-port <port>] [--timeout <timeout>]`
7
-
Deploy in the native emulator, run the app and stop at the first breakpoint | `$ tns debug android --debug-brk --emulator [<Emulator Options>] [--timeout <timeout>]`
8
-
Deploy in Genymotion, run the app and stop at the first breakpoint | `$ tns debug android --debug-brk --geny <Geny Name> [--timeout <timeout>]`
6
+
Deploy on device, run the app and stop at the first breakpoint | `$ tns debug android [--device <Device ID>] [--debug-port <port>] [--timeout <timeout>]`
7
+
Deploy in the native emulator, run the app and stop at the first breakpoint | `$ tns debug android --emulator [<Emulator Options>] [--timeout <timeout>]`
8
+
Deploy in Genymotion, run the app and stop at the first breakpoint | `$ tns debug android --geny <Geny Name> [--timeout <timeout>]`
9
9
Attach the debug tools to a running app on device | `$ tns debug android --start [--device <Device ID>] [--debug-port <port>] [--timeout <timeout>]`
10
10
Attach the debug tools to a running app in the native emulator | `$ tns debug android --start --emulator [<Emulator Options>] [--timeout <timeout>]`
11
11
Attach the debug tools to a running app in Genymotion | `$ tns debug android --start --geny <Geny Name> [--print-app-output] [--timeout <timeout>]`
@@ -18,19 +18,18 @@ Debugs your project on a connected device, in a native emulator or in Genymotion
18
18
*`--device` - Specifies a connected device on which to debug the app.
19
19
*`--emulator` - Specifies that you want to debug the app in the native Android emulator from the Android SDK.
20
20
*`--geny` - Specifies a Genymotion emulator on which you want to debug your app.
21
-
*`--debug-brk` - Prepares, builds and deploys the application package on a device or in an emulator, launches the Chrome DevTools of your Chrome browser.
22
21
*`--start` - Attaches the debug tools to a deployed and running app.
23
22
*`--stop` - Detaches the debug tools.
24
23
*`--get-port` - Retrieves the port on which you are debugging your application.
25
24
*`--debug-port` - Sets a new port on which to attach the debug tools.
26
25
*`--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.
27
26
28
27
### Attributes
29
-
*`<Device ID>` is the index or name of the target device as listed by `$ tns device`
28
+
*`<Device ID>` is the index or name of the target device as listed by `$ tns device`
30
29
*`<Port>` is an accessible port on the device to which you want to attach the debugging tools.
31
30
*`<Emulator Options>` is any valid combination of options as listed by `$ tns help emulate android`
32
31
*`<GenyName>` is the name of the Genymotion virtual device that you want to use as listed by `$ genyshell -c "devices list"`
33
-
32
+
34
33
<% if(isHtml) { %>
35
34
###Prerequisites
36
35
@@ -56,6 +55,6 @@ Command | Description
56
55
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured.
57
56
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.
58
57
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
59
-
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
58
+
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
60
59
[test ios](test-ios.html) | Runs the tests in your project on iOS devices or the iOS Simulator.
Copy file name to clipboardExpand all lines: docs/man_pages/project/testing/debug-ios.md
+7-8
Original file line number
Diff line number
Diff line change
@@ -3,20 +3,19 @@ debug ios
3
3
4
4
Usage | Synopsis
5
5
---|---
6
-
Deploy on device, run the app and stop at the first breakpoint | `$ tns debug ios --debug-brk [--device <Device ID>] [--no-client]`
7
-
Deploy in the iOS Simulator, run the app and stop at the first breakpoint | `$ tns debug ios --debug-brk --emulator [<Emulator Options>] [--no-client]`
6
+
Deploy on device, run the app and stop at the first breakpoint | `$ tns debug ios [--device <Device ID>] [--no-client]`
7
+
Deploy in the iOS Simulator, run the app and stop at the first breakpoint | `$ tns debug ios --emulator [<Emulator Options>] [--no-client]`
8
8
Attach the debug tools to a running app on device | `$ tns debug ios --start [--device <Device ID>] [--no-client]`
9
9
Attach the debug tools to a running app in the iOS Simulator | `$ tns debug ios --start --emulator [<Emulator Options>] [--no-client]`
10
10
11
-
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.<% } %>
11
+
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.<% } %>
12
12
13
-
<% if(isConsole && (isWindows || isLinux)) { %>WARNING: You can run this command only on OS X systems. To view the complete help for this command, run `$ tns help debug ios`<% } %>
13
+
<% if(isConsole && (isWindows || isLinux)) { %>WARNING: You can run this command only on OS X systems. To view the complete help for this command, run `$ tns help debug ios`<% } %>
14
14
15
15
<% if((isConsole && isMacOS) || isHtml) { %>
16
16
<% if(isHtml) { %>> <% } %>IMPORTANT: Before building for iOS device, verify that you have configured a valid pair of certificate and provisioning profile on your OS X system. <% if(isHtml) { %>For more information, see [Obtaining Signing Identities and Downloading Provisioning Profiles](https://developer.apple.com/library/mac/recipes/xcode_help-accounts_preferences/articles/obtain_certificates_and_provisioning_profiles.html).<% } %>
17
17
18
18
### Options
19
-
*`--debug-brk` - Prepares, builds and deploys the application package on a device or in an emulator, runs the app, launches the developer tools of your Safari browser and stops at the first breakpoint.
20
19
*`--start` - Attaches the debug tools to a deployed and running app and launches the developer tools of your Safari browser.
21
20
*`--emulator` - Indicates that you want to debug your app in the iOS simulator.
22
21
*`--no-client` - If set, the NativeScript CLI attaches the debug tools but does not launch the developer tools in Safari.
@@ -25,8 +24,8 @@ Debugs your project on a connected device or in the iOS Simulator. <% if(isHtml)
25
24
### Attributes
26
25
*`<Device ID>` is the index or name of the target device as listed by `$ tns device`
27
26
*`<Emulator Options>` is any valid combination of options as listed by `$ tns help emulate ios`
28
-
<% } %>
29
-
<% if(isHtml) { %>
27
+
<% } %>
28
+
<% if(isHtml) { %>
30
29
### Prerequisite
31
30
32
31
* If you want to debug in the iOS Simulator, you must have Xcode 6 or later installed on your system.
@@ -55,6 +54,6 @@ Command | Description
55
54
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured.
56
55
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.
57
56
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
58
-
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
57
+
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
59
58
[test ios](test-ios.html) | Runs the tests in your project on iOS devices or the iOS Simulator.
Copy file name to clipboardExpand all lines: docs/man_pages/project/testing/dev-test-android.md
+2-3
Original file line number
Diff line number
Diff line change
@@ -3,15 +3,14 @@ test android
3
3
4
4
Usage | Synopsis
5
5
------|-------
6
-
Run tests on all connected devices | `$ tns test android [--watch] [--debug-brk]`
7
-
Run tests on a selected device | `$ tns test android --device <Device ID> [--watch] [--debug-brk]`
6
+
Run tests on all connected devices | `$ tns test android [--watch]`
7
+
Run tests on a selected device | `$ tns test android --device <Device ID> [--watch]`
8
8
9
9
Runs the tests in your project on connected Android devices and running native emulators.<% if(isConsole) { %> Your project must already be configured for unit testing by running `$ tns test init`.<% } %>
10
10
11
11
### Options
12
12
*`--watch` - If set, when you save changes to the project, changes are automatically synchronized to the connected device and tests are re-run.
13
13
*`--device` - Specifies the serial number or the index of the connected device on which to run the tests. To list all connected devices, grouped by platform, run `$ tns device`
14
-
*`--debug-brk` - Runs the tests under the debugger. The debugger will break just before your tests are executed, so you have a chance to place breakpoints.
15
14
16
15
### Attributes
17
16
*`<Device ID>` is the device index or identifier as listed by `$ tns device`
Copy file name to clipboardExpand all lines: docs/man_pages/project/testing/test-android.md
+2-3
Original file line number
Diff line number
Diff line change
@@ -3,15 +3,14 @@ test android
3
3
4
4
Usage | Synopsis
5
5
------|-------
6
-
Run tests on all connected devices | `$ tns test android [--watch] [--debug-brk]`
7
-
Run tests on a selected device | `$ tns test android --device <Device ID> [--watch] [--debug-brk]`
6
+
Run tests on all connected devices | `$ tns test android [--watch]`
7
+
Run tests on a selected device | `$ tns test android --device <Device ID> [--watch]`
8
8
9
9
Runs the tests in your project on connected Android devices and running native emulators.<% if(isConsole) { %> Your project must already be configured for unit testing by running `$ tns test init`.<% } %>
10
10
11
11
### Options
12
12
*`--watch` - If set, when you save changes to the project, changes are automatically synchronized to the connected device and tests are re-run.
13
13
*`--device` - Specifies the serial number or the index of the connected device on which to run the tests. To list all connected devices, grouped by platform, run `$ tns device`
14
-
*`--debug-brk` - Runs the tests under the debugger. The debugger will break just before your tests are executed, so you have a chance to place breakpoints.
15
14
16
15
### Attributes
17
16
*`<Device ID>` is the device index or identifier as listed by `$ tns device`
Copy file name to clipboardExpand all lines: docs/man_pages/project/testing/test-ios.md
+4-5
Original file line number
Diff line number
Diff line change
@@ -3,20 +3,19 @@ test ios
3
3
4
4
Usage | Synopsis
5
5
------|-------
6
-
Run tests on all connected devices | `$ tns test ios [--watch] [--debug-brk]`
7
-
Run tests on a selected device | `$ tns test ios --device <Device ID> [--watch] [--debug-brk]`
8
-
Run tests in the iOS Simulator | `$ tns test ios --emulator [--watch] [--debug-brk]`
6
+
Run tests on all connected devices | `$ tns test ios [--watch]`
7
+
Run tests on a selected device | `$ tns test ios --device <Device ID> [--watch]`
8
+
Run tests in the iOS Simulator | `$ tns test ios --emulator [--watch]`
9
9
10
10
Runs the tests in your project on connected iOS devices or the iOS Simulator.<% if(isConsole && isMacOS) { %> Your project must already be configured for unit testing by running `$ tns test init`.<% } %>
11
11
12
-
<% if(isConsole && (isLinux || isWindows)) { %>WARNING: You can run this command only on OS X systems. To view the complete help for this command, run `$ tns help test ios`<% } %>
12
+
<% if(isConsole && (isLinux || isWindows)) { %>WARNING: You can run this command only on OS X systems. To view the complete help for this command, run `$ tns help test ios`<% } %>
13
13
14
14
<% if((isConsole && isMacOS) || isHtml) { %>
15
15
### Options
16
16
*`--watch` - If set, when you save changes to the project, changes are automatically synchronized to the connected device and tests are re-ran.
17
17
*`--device` - Specifies the serial number or the index of the connected device on which you want to run tests. To list all connected devices, grouped by platform, run `$ tns device`. You cannot set `--device` and `--emulator` simultaneously.
18
18
*`--emulator` - Runs tests on the iOS Simulator. You cannot set `--device` and `--emulator` simultaneously.
19
-
*`--debug-brk` - Runs the tests under the debugger. The debugger will break just before your tests are executed, so you have a chance to place breakpoints.
20
19
21
20
### Attributes
22
21
*`<Device ID>` is the device index or identifier as listed by `$ tns device`<% } %>
0 commit comments