Skip to content

Commit cca5e46

Browse files
committed
Merge pull request #266 from NativeScript/debug-command
Very rough draft. I can't get this thing going at all, so this might not...
2 parents cd70027 + 117724e commit cca5e46

File tree

1 file changed

+25
-18
lines changed

1 file changed

+25
-18
lines changed

resources/help.txt

+25-18
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ General commands:
2424
emulate Deploys the project in the native emulator for the selected target platform.
2525
run Runs your project on a connected device or in the native emulator, if configured.
2626
This is shorthand for prepare, build, and deploy.
27-
debug Debugs your project on a connected device or in the native emulator, if configured.
27+
debug Debugs your project on a connected device.
2828
device Lists all recognized connected physical or virtual device.
2929
device log Opens the log stream for the selected device.
3030
device run Runs the selected application on a connected device.
@@ -415,38 +415,45 @@ Options:
415415
--[debug]--
416416

417417
Usage:
418-
$ tns debug <Platform> [--device <Device ID>] [--debug-brk | --start | --stop | --get-port] [--debug-port <port>]
419-
$ nativescript debug <Platform> [--device <Device ID>] [--debug-brk | --start | --stop | --get-port] [--debug-port <port>]
420-
418+
$ tns debug android [--device <Device ID> | --emulator <Emulator Options> | --geny <Geny Name> ] [--debug-brk | --start | --stop | --get-port] [--debug-port <port>]
419+
$ tns debug ios [--device <Device ID>] [--debug-brk | --start ]
420+
421421
Platform-specific usage:
422422
$ tns debug android --get-port
423-
$ tns debug android --debug-brk
423+
$ tns debug android --debug-brk [--debug-port <port>]
424+
$ tns debug android --start [--debug-port <port>]
425+
$ tns debug android --stop
424426
$ tns debug ios --debug-brk
425-
$ nativescript debug android --debug-brk
426-
$ nativescript debug ios --start
427+
$ tns debug ios --start
427428

428-
Debugs your project on a connected device or in the native emulator, if configured. This is shorthand for prepare, build, and deploy.
429-
<Device ID> is the index or name of the target device as listed by $ tns list-devices.
429+
Debugs your project on a connected device or in a native emulator.
430430

431-
Before building for the Android emulator, verify that you have met the following requirements.
432-
You have added the file paths to the following directories from the Android SDK to your PATH environment variable.
433-
tools
434-
platform-tools
435-
You have created at least one device with the Android Virtual Device manager.
431+
<Device ID> is the index or name of the target device as listed by $ tns list-devices
432+
<Port> is an accessible port on the device to which you want to attach the debugging tools.
436433

437-
Before building for iOS device, verify that you have configured a valid pair of certificate and provisioning profile on your OS X system.
438-
Connecting to iOS device always uses port 8080, --get-port and --debug-port are not supported.
434+
Before debugging on iOS device, verify that you have configured a valid pair of development certificate and provisioning profile on your OS X system.
439435

440436
Options:
441437
--device - Specifies a connected device on which to run the app.
442-
--emulator - If set, runs the app in the native emulator for the target platform, if configured.
438+
--emulator - (Android-only) Specifies that you want to debug the app in the native Android emulator from the Android SDK.
439+
--geny - (Android-only) Specifies a Genymotion emulator on which you want to debug your app.
440+
--debug-brk - Shorthand for prepare, build and deploy. Prepares, builds and deploys the application package on a device or in an emulator,
441+
launches the app and loads the debug tools in the browser.
442+
For Android, launches the Chrome DevTools of your Chrome browser. You must have Chrome installed on your system.
443+
For iOS, launches the developer tools of your Safari browser.
444+
--start - Attaches the debug tools to a deployed and running app. Your app must be running on device.
445+
--stop - (Android-only) Detaches the debug tools.
446+
--get-port - (Android-only) Retrieves the port on which you are debugging your application.
447+
On iOS devices, this option is not available because the debug tools always attach to port 8080.
448+
--debug-port - (Android-only) Sets a new port on which to attach the debug tools.
449+
On iOS devices, this option is not available because the debug tools always attach to port 8080.
443450

444451
--[/]--
445452

446453
--[emulate]--
447454

448455
Usage:
449-
$ tns emulate emulate <Command> [--release]
456+
$ tns emulate <Command> [--release]
450457

451458
You must run the emulate command with a related command.
452459

0 commit comments

Comments
 (0)