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
+5-8Lines changed: 5 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,12 @@
1
1
debug android
2
2
==========
3
3
4
-
All you need to do to start debugging your app is to execute `tns debug android`. The NativeScript CLI will build, deploy, start your app, start Chrome DevTools and attach the debugger.
5
-
* You cannot debug if there are multiple devices available (emulators and/or real devices). You need to have started only one device or emulator.
6
-
7
4
Usage | Synopsis
8
5
---|---
9
-
Deploy on device, run the app and attach the debugger | `$ tns debug android`
10
-
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>]`
11
-
Deploy in the native emulator, run the app and stop at the first breakpoint | `$ tns debug android --debug-brk --emulator [<Emulator Options>] [--timeout <timeout>]`
12
-
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 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
+
Deploy in Genymotion, run the app and stop at the first code statement | `$ tns debug android --debug-brk --geny <Geny Name> [--timeout <timeout>]`
13
10
Attach the debug tools to a running app on device | `$ tns debug android --start [--device <Device ID>] [--debug-port <port>] [--timeout <timeout>]`
14
11
Attach the debug tools to a running app in the native emulator | `$ tns debug android --start --emulator [<Emulator Options>] [--timeout <timeout>]`
15
12
Attach the debug tools to a running app in Genymotion | `$ tns debug android --start --geny <Geny Name> [--print-app-output] [--timeout <timeout>]`
@@ -22,7 +19,7 @@ Debugs your project on a connected device, in a native emulator or in Genymotion
22
19
*`--device` - Specifies a connected device on which to debug the app.
23
20
*`--emulator` - Specifies that you want to debug the app in the native Android emulator from the Android SDK.
24
21
*`--geny` - Specifies a Genymotion emulator on which you want to debug your app.
25
-
*`--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
+
*`--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.
26
23
*`--start` - Attaches the debug tools to a deployed and running app.
27
24
*`--stop` - Detaches the debug tools.
28
25
*`--get-port` - Retrieves the port on which you are debugging your application.
Copy file name to clipboardExpand all lines: docs/man_pages/project/testing/debug-ios.md
+4-6Lines changed: 4 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,11 @@
1
1
debug ios
2
2
==========
3
-
All you need to do to start debugging your app is to execute `tns debug ios`. The NativeScript CLI will build, deploy, start your app, start Safari Web Inspector and attach the debugger.
4
-
* You cannot debug if there are multiple devices available (emulators and/or real devices). You need to have started only one device or emulator.
5
3
6
4
Usage | Synopsis
7
5
---|---
8
-
Deploy on device, run the app and attach the debugger | `$ tns debug ios`
9
-
Deploy on device, run the app and stop at the first breakpoint | `$ tns debug ios --debug-brk [--device <Device ID>] [--no-client]`
10
-
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, 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]`
11
9
Attach the debug tools to a running app on device | `$ tns debug ios --start [--device <Device ID>] [--no-client]`
12
10
Attach the debug tools to a running app in the iOS Simulator | `$ tns debug ios --start --emulator [<Emulator Options>] [--no-client]`
13
11
@@ -19,7 +17,7 @@ Debugs your project on a connected device or in the iOS Simulator. <% if(isHtml)
19
17
<% 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).<% } %>
20
18
21
19
### Options
22
-
*`--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
+
*`--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
21
*`--start` - Attaches the debug tools to a deployed and running app and launches the developer tools of your Safari browser.
24
22
*`--emulator` - Indicates that you want to debug your app in the iOS simulator.
25
23
*`--no-client` - If set, the NativeScript CLI attaches the debug tools but does not launch the developer tools in Safari.
0 commit comments