Skip to content

Commit 703ff5f

Browse files
committed
docs(ios): explain where forwarded stdout and stderr show
They show from --log debug up, and stderr is only forwarded on physical devices.
1 parent 825f2d0 commit 703ff5f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎docs/man_pages/project/testing/debug-ios.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Attach the debug tools to a running app in the iOS simulator | `$ ns debug ios -
3030
* `--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.
3131
* `--start` - Attaches the debug tools to a deployed and running app and launches the developer tools of your Safari browser.
3232
* `--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.
33-
* `--log <Level>` - Sets how much of the application output is printed. By default only its JavaScript output is shown. `debug` adds everything else the app logs - its native code and the system frameworks it uses, like Xcode's console. `trace` and `all` add debug level entries as well. `--log` also sets the verbosity of the CLI's own output, so each of these levels prints the CLI's diagnostic messages too.
33+
* `--log <Level>` - Sets how much of the application output is printed. By default only its JavaScript output is shown. `debug` and above add everything else the app logs, like Xcode's console - its native code and the system frameworks it uses, and its standard output and error, such as `print()` output, labeled `stdout:` and `stderr:`. Standard error is only forwarded on physical devices; in the simulator, `NSLog` output reaches the log without it. `trace` and `all` add debug level entries as well. `--log` also sets the verbosity of the CLI's own output, so each of these levels prints the CLI's diagnostic messages too.
3434
* `--timeout` - Sets the number of seconds that NativeScript CLI will wait to find the inspector socket port from device's logs. If not set, the default timeout is 10 seconds.
3535
* `--no-watch` - If set, changes in your code will not be reflected during the execution of this command.
3636
* `--clean` - If set, forces the complete rebuild of the native application.

‎docs/man_pages/project/testing/run-ios.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Start an emulator with specified device identifier and sdk | `$ ns run ios [--de
3333
* `--emulator` - If set, runs the app in all available and configured ios simulators. It will start a simulator if none are already running.
3434
* `--sdk` - Specifies the target simulator's sdk.
3535
* `--justlaunch` - If set, does not print the application output in the console.
36-
* `--log <Level>` - Sets how much of the application output is printed. By default only its JavaScript output is shown. `debug` adds everything else the app logs - its native code, `print()` output and the system frameworks it uses, like Xcode's console. `trace` and `all` add debug level entries as well. `--log` also sets the verbosity of the CLI's own output, so each of these levels prints the CLI's diagnostic messages too.
36+
* `--log <Level>` - Sets how much of the application output is printed. By default only its JavaScript output is shown. `debug` and above add everything else the app logs, like Xcode's console - its native code and the system frameworks it uses, and its standard output and error, such as `print()` output, labeled `stdout:` and `stderr:`. Standard error is only forwarded on physical devices; in the simulator, `NSLog` output reaches the log without it. `trace` and `all` add debug level entries as well. `--log` also sets the verbosity of the CLI's own output, so each of these levels prints the CLI's diagnostic messages too.
3737
* `--clean` - If set, forces the complete rebuild of the native application.
3838
* `--no-watch` - If set, changes in your code will not be reflected during the execution of this command.
3939
* `--release` - If set, produces a release build by running webpack in production mode and native build in release mode. Otherwise, produces a debug build.

‎docs/man_pages/project/testing/test-ios.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Run tests in the iOS Simulator | `$ ns test ios --emulator [--watch] [--debug-br
2727
* `--device` - Specifies the serial number or the index of the connected device on which you want to run tests. To list all connected devices, grouped by platform, run `$ ns device`. You cannot set `--device` and `--emulator` simultaneously. `<Device ID>` is the device index or identifier as listed by the `$ ns device` command.
2828
* `--emulator` - Runs tests on the iOS Simulator. You cannot set `--device` and `--emulator` simultaneously.
2929
* `--debug-brk` - Runs the tests under the debugger. The debugger will break just before your tests are executed, so you have a chance to place breakpoints.
30-
* `--log <Level>` - Sets how much of the application output is printed. By default only its JavaScript output is shown. `debug` adds everything else the app logs - its native code and the system frameworks it uses, like Xcode's console. `trace` and `all` add debug level entries as well. `--log` also sets the verbosity of the CLI's own output, so each of these levels prints the CLI's diagnostic messages too.
30+
* `--log <Level>` - Sets how much of the application output is printed. By default only its JavaScript output is shown. `debug` and above add everything else the app logs, like Xcode's console - its native code and the system frameworks it uses, and its standard output and error, such as `print()` output, labeled `stdout:` and `stderr:`. Standard error is only forwarded on physical devices; in the simulator, `NSLog` output reaches the log without it. `trace` and `all` add debug level entries as well. `--log` also sets the verbosity of the CLI's own output, so each of these levels prints the CLI's diagnostic messages too.
3131
* `--force` - If set, skips the application compatibility checks and forces `npm i` to ensure all dependencies are installed. Otherwise, the command will check the application compatibility with the current CLI version and could fail requiring `ns migrate`.
3232

3333
<% } %>

0 commit comments

Comments
 (0)