@@ -20,6 +20,7 @@ General commands:
2020 emulate Deploys the project in the native emulator for the selected target platform.
2121 run Runs your project on a connected device or in the native emulator, if configured.
2222 This is shorthand for prepare, build, and deploy.
23+ debug Debugs your project on a connected device or in the native emulator, if configured.
2324 device Lists all recognized connected physical or virtual device.
2425 feature-usage-tracking Configures anonymous feature usage tracking.
2526
@@ -235,6 +236,40 @@ Options:
235236
236237--[/]--
237238
239+ --[debug]--
240+
241+ Usage:
242+ $ tns debug <Platform> [--device <Device ID>] [--debug-brk | --start | --stop | --get-port] [--debug-port <port>]
243+ $ nativescript debug <Platform> [--device <Device ID>] [--debug-brk | --start | --stop | --get-port] [--debug-port <port>]
244+
245+ Platform-specific usage:
246+ $ tns debug android --get-port
247+ $ tns debug android --debug-brk
248+ $ tns debug ios --debug-brk --debug-port 12345
249+ $ nativescript debug android --debug-brk
250+ $ nativescript debug ios --start --debug-port 12345
251+
252+ TODO: add proper help content
253+
254+ Debugs your project on a connected device or in the native emulator, if configured. This is shorthand for prepare, build, and deploy.
255+ <Device ID> is the index or name of the target device as listed by $ tns list-devices.
256+
257+ Before building for the Android emulator, verify that you have met the following requirements.
258+ You have added the file paths to the following directories from the Android SDK to your PATH environment variable.
259+ tools
260+ platform-tools
261+ You have created at least one device with the Android Virtual Device manager.
262+
263+ Before building for the iOS simulator, verify that you have installed the ios-sim npm package.
264+
265+ Before building for iOS device, verify that you have configured a valid pair of certificate and provisioning profile on your OS X system.
266+
267+ Options:
268+ --device - Specifies a connected device on which to run the app.
269+ --emulator - If set, runs the app in the native emulator for the target platform, if configured.
270+
271+ --[/]--
272+
238273--[emulate]--
239274
240275Usage:
0 commit comments