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
Deploy on device, run the app start Chrome DevTools, and attach the debugger $ tns debug android
46
-
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>]
47
-
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>]
48
-
Attach the debug tools to a running app on device $ tns debug android --start [--device <Device ID>] [--debug-port <port>] [--timeout <timeout>]
49
-
Attach the debug tools to a running app in the native emulator $ tns debug android --start --emulator [<Emulator Options>] [--timeout <timeout>]
50
-
Detach the debug tools $ tns debug android --stop
51
-
52
-
53
-
Prepares, builds and deploys the project when necessary. Debugs your project on a connected device or emulator.
54
-
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.
55
-
56
-
### Options
57
-
58
-
* --device - Specifies a connected device on which to debug the app.
59
-
* --emulator - Specifies that you want to debug the app in the native Android emulator from the Android SDK.
60
-
* --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.
61
-
* --start - Attaches the debug tools to a deployed and running app.
62
-
* --stop - Detaches the debug tools.
63
-
* --debug-port - Sets a new port on which to attach the debug tools.
64
-
* --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.
65
-
* --no-watch - If set, changes in your code will not be reflected during the execution of this command.
66
-
* --clean - If set, forces rebuilding the native application.
67
-
68
-
### Attributes
69
-
70
-
* <Device ID> is the index or name of the target device as listed by $ tns device
71
-
* <Port> is an accessible port on the device to which you want to attach the debugging tools.
72
-
* <Emulator Options> is any valid combination of options as listed by $ tns help emulate android
73
-
"""
74
-
75
42
def__verify_debugger_start(self, log):
76
43
strings= [EMULATOR_ID, 'NativeScript Debugger started', 'To start debugging, open the following URL in Chrome',
77
44
'chrome-devtools', 'localhost:40000']
78
45
ifDevice.get_count(platform=Platform.ANDROID) >0:
79
46
strings.append("Multiple devices found! Starting debugger on emulator")
0 commit comments