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
+18-26
Original file line number
Diff line number
Diff line change
@@ -3,54 +3,46 @@ debug android
3
3
4
4
Usage | Synopsis
5
5
---|---
6
-
Deploy on device, run the app start Chrome DevTools, and attach the debugger | `$ tns debug android`
7
-
Deploy on device, run the app and stop at the first code statement | `$ tns debug android --debug-brk [--device <Device ID>] [--debug-port <port>] [--timeout <timeout>]`
8
-
Deploy in the native emulator, run the app and stop at the first code statement | `$ tns debug android --debug-brk --emulator [<Emulator Options>] [--timeout <timeout>]`
9
-
Attach the debug tools to a running app on device | `$ tns debug android --start [--device <Device ID>] [--debug-port <port>] [--timeout <timeout>]`
10
-
Attach the debug tools to a running app in the native emulator | `$ tns debug android --start --emulator [<Emulator Options>] [--timeout <timeout>]`
11
-
Detach the debug tools | `$ tns debug android --stop`
6
+
Deploy on device/emulator, run the app, follow generated link to use in Chrome Developer Tools, and attach the debugger | `$ tns debug android`
7
+
Deploy on device/emulator, run the app and stop at the first code statement | `$ tns debug android --debug-brk [--device <Device ID>] [--timeout <timeout>]`
8
+
Deploy in the native emulator, run the app and stop at the first code statement | `$ tns debug android --debug-brk --emulator [--timeout <timeout>]`
9
+
Attach the debug tools to a running app on device/emulator | `$ tns debug android --start [--device <Device ID>] [--timeout <timeout>]`
10
+
Attach the debug tools to a running app in the native emulator | `$ tns debug android --start --emulator [--timeout <timeout>]`
12
11
13
12
Prepares, builds and deploys the project when necessary. Debugs your project on a connected device or emulator.
14
-
While debugging, prints the output from the application in the console and watches for changes in your code. Once a change is detected, it synchronizes the change with all selected devices and restarts/refreshes the application.
13
+
While debugging, prints the output from the application in the console and watches for changes in your code. Once a change is detected, it synchronizes the change with the selected device and restarts the application.
15
14
16
15
### Options
17
-
*`--device` - Specifies a connected device on which to debug the app.
18
-
*`--emulator` - Specifies that you want to debug the app in the native Android emulator from the Android SDK.
19
-
*`--debug-brk` - Prepares, builds and deploys the application package on a device or in an emulator, launches the Chrome DevTools of your Chrome browser and stops at the first code statement.
16
+
*`--device` - Specifies a connected device/emulator on which to debug the app.
17
+
*`--emulator` - Specifies that you want to debug the app in the native Android emulator.
18
+
*`--debug-brk` - Prepares, builds and deploys the application package on a device/emulator, generates a link for Chrome Developer Tools and stops at the first code statement.
20
19
*`--start` - Attaches the debug tools to a deployed and running app.
21
-
*`--stop` - Detaches the debug tools.
22
-
*`--debug-port` - Sets a new port on which to attach the debug tools.
23
-
*`--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.
20
+
*`--timeout` - Sets the number of seconds that the NativeScript CLI will wait for the emulator/device to boot. If not set, the default timeout is 90 seconds.
24
21
*`--no-watch` - If set, changes in your code will not be reflected during the execution of this command.
25
22
*`--clean` - If set, forces rebuilding the native application.
26
23
27
24
### Attributes
28
-
*`<Device ID>` is the index or name of the target device as listed by `$ tns device`
29
-
*`<Port>` is an accessible port on the device to which you want to attach the debugging tools.
30
-
*`<Emulator Options>` is any valid combination of options as listed by `$ tns help emulate android`
25
+
*`<Device ID>` is the device identifier or name of the target device as listed by `$ tns device android`
31
26
32
27
<% if(isHtml) { %>
33
28
### Prerequisites
34
29
35
-
* You must have Chrome installed on your system.<br/>If you are using a non-standard named Chrome app on an OS X system (for example, a nightly Canary update), you need to set this name in the `ANDROID_DEBUG_UI_MAC` setting in the NativeScript [config.json](file:///<%= #{config.getConfigPath(config)} %>).
30
+
* You must have Chrome installed on your system.<br/>
31
+
36
32
37
33
### Related Commands
38
34
39
35
Command | Description
40
36
----------|----------
41
-
[build android](build-android.html) | Builds the project for Android and produces an APK that you can manually deploy on device or in the native emulator.
42
-
[build ios](build-ios.html) | Builds the project for iOS and produces an APP or IPA that you can manually deploy in the iOS Simulator or on device, respectively.
43
37
[build](build.html) | Builds the project for the selected target platform and produces an application package that you can manually deploy on device or in the native emulator.
44
-
[debug ios](debug-ios.html) | Debugs your project on a connected iOS device or in a native emulator.
38
+
[build android](build-android.html) | Builds the project for Android and produces an APK that you can manually deploy on device or in the native emulator.
45
39
[debug](debug.html) | Debugs your project on a connected device or in a native emulator.
40
+
[debug ios](debug-ios.html) | Debugs your project on a connected iOS device or in a native emulator.
46
41
[deploy](deploy.html) | Builds and deploys the project to a connected physical or virtual device.
47
-
[emulate android](emulate-android.html) | Builds the specified project and runs it in a native Android emulator.
48
-
[emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator.
49
-
[emulate](emulate.html) | You must run the emulate command with a related command.
50
-
[run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured.
51
-
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured.
42
+
[device](../../device/device.html) | Lists all connected devices/emulators.
43
+
[device android](../../device/device-android.html) | Lists all connected devices/emulators for android.
52
44
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.
45
+
[run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured.
53
46
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
54
47
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
55
-
[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
+20-24
Original file line number
Diff line number
Diff line change
@@ -3,38 +3,38 @@ debug ios
3
3
4
4
Usage | Synopsis
5
5
---|---
6
-
Deploy on device, run the app, start Safari Web Inspector and attach the debugger | `$ tns debug ios`
7
-
Deploy on device, run the app and stop at the first code statement | `$ tns debug ios --debug-brk [--device <Device ID>] [--no-client]`
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
-
Attach the debug tools to a running app on device | `$ tns debug ios --start [--device <Device ID>] [--no-client]`
10
-
Attach the debug tools to a running app in the iOS Simulator | `$ tns debug ios --start --emulator [<Emulator Options>] [--no-client]`
6
+
Deploy on device/simulator, run the app, start Safari Web Inspector and attache the debugger | `$ tns debug ios`
7
+
Deploy on device/simulator, run the app and stop at the first code statement | `$ tns debug ios --debug-brk [--device <Device ID>] [--no-client]`
8
+
Deploy in the iOS simulator, run the app and stop at the first code statement | `$ tns debug ios --debug-brk --emulator [--no-client]`
9
+
Attach the debug tools to a running app on specified device or simulator| `$ tns debug ios --start [--device <Device ID>] [--no-client]`
10
+
Attach the debug tools to a running app in the iOS simulator | `$ tns debug ios --start --emulator [--no-client]`
11
11
12
-
Prepares, builds and deploys the project when necessary. 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
-
While debugging, prints the output from the application in the console and watches for changes in your code. Once a change is detected, it synchronizes the change with all selected devices and restarts/refreshes the application.
12
+
Prepares, builds and deploys the project when necessary. Debugs your project on a connected device or in the iOS simulator. <% if(isHtml) { %>Any debugging traffic is forwarded to port 8080( or the next available one) from the device to the local machine.<% } %>
13
+
While debugging, prints the output from the application in the console and watches for changes in your code. Once a change is detected, it synchronizes the change with the selected device and restarts the application.
14
14
15
15
<% 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`<% } %>
16
16
17
17
<% if((isConsole && isMacOS) || isHtml) { %>
18
18
<% 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).<% } %>
19
19
20
20
### Options
21
-
*`--device` - Specifies a connected device on which to run the app.
21
+
*`--device` - Specifies a connected device or iOS simulator on which to run the app.
22
22
*`--emulator` - Indicates that you want to debug your app in the iOS simulator.
23
-
*`--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 code statement.
23
+
*`--debug-brk` - Prepares, builds and deploys the application package on a device or in a simulator, runs the app, launches the developer tools of your Safari browser and stops at the first code statement.
24
24
*`--start` - Attaches the debug tools to a deployed and running app and launches the developer tools of your Safari browser.
25
-
*`--no-client` - If set, the NativeScript CLI attaches the debug tools but does not launch the developer tools in Safari.
26
-
*`--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.
25
+
*`--no-client` - If set, the NativeScript CLI attaches the debug tools but does not launch the developer tools in Safari. Could be used on already started Safari Web Inspector.
26
+
*`--timeout` - Sets the number of seconds that NativeScript CLI will wait for the simulator/device to boot. If not set, the default timeout is 90 seconds.
27
27
*`--no-watch` - If set, changes in your code will not be reflected during the execution of this command.
28
28
*`--clean` - If set, forces rebuilding the native application.
29
+
*`--chrome` - Allows debugging in Chrome Developer Tools. If set Safari Web Inspector is not started and debugging is attached to Chrome Developer Tools.
29
30
30
31
### Attributes
31
-
*`<Device ID>` is the index or name of the target device as listed by `$ tns device`
32
-
*`<Emulator Options>` is any valid combination of options as listed by `$ tns help emulate ios`
32
+
*`<Device ID>` is the device identifier of the target device as listed by `$ tns device ios`
33
33
<% } %>
34
34
<% if(isHtml) { %>
35
35
### Prerequisite
36
36
37
-
* If you want to debug in the iOS Simulator, you must have Xcode 6 or later installed on your system.
37
+
* If you want to debug in the iOS simulator, you must have Xcode 6 or later installed on your system.
38
38
39
39
### Command Limitations
40
40
@@ -44,19 +44,15 @@ While debugging, prints the output from the application in the console and watch
44
44
45
45
Command | Description
46
46
----------|----------
47
-
[build android](build-android.html) | Builds the project for Android and produces an APK that you can manually deploy on device or in the native emulator.
48
-
[build ios](build-ios.html) | Builds the project for iOS and produces an APP or IPA that you can manually deploy in the iOS Simulator or on device, respectively.
49
47
[build](build.html) | Builds the project for the selected target platform and produces an application package that you can manually deploy on device or in the native emulator.
50
-
[debug android](debug-android.html) | Debugs your project on a connected Android device or in a native emulator.
48
+
[build ios](build-ios.html) | Builds the project for iOS and produces an APP or IPA that you can manually deploy in the iOS simulator or on device, respectively.
51
49
[debug](debug.html) | Debugs your project on a connected device or in a native emulator.
50
+
[debug android](debug-android.html) | Debugs your project on a connected Android device or in a native emulator.
52
51
[deploy](deploy.html) | Builds and deploys the project to a connected physical or virtual device.
53
-
[emulate android](emulate-android.html) | Builds the specified project and runs it in a native Android emulator.
54
-
[emulate ios](emulate-ios.html) | Builds the specified project and runs it in the native iOS Simulator.
55
-
[emulate](emulate.html) | You must run the emulate command with a related command.
56
-
[run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured.
57
-
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured.
52
+
[device](../../device/device.html) | Lists all connected devices/emulators.
53
+
[device ios](../../device/device-ios.html) | Lists all connected devices/simulators for iOS.
58
54
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.
55
+
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS simulator, if configured.
59
56
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
60
-
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
61
-
[test ios](test-ios.html) | Runs the tests in your project on iOS devices or the iOS Simulator.
57
+
[test ios](test-ios.html) | Runs the tests in your project on iOS devices or the iOS simulator.
Debugs your project on a connected device or in a native emulator. <% if(isMacOS) { %>You must specify the target platform on which you want to debug.<% } %> The command will prepare, build and deploy the app when necessary. By default listens for changes in your code, synchronizes those changes and refreshes the selected device.
8
+
Debugs your project on a connected device or in a native emulator. <% if(isMacOS) { %>You must specify the target platform on which you want to debug.<% } %> The command will prepare, build and deploy the app when necessary. By default listens for changes in your code, synchronizes those changes and restarts the app on the targeted device.
0 commit comments