Skip to content

Commit 79b62b6

Browse files
FatmeFatme
Fatme
authored and
Fatme
committed
Merge pull request #749 from NativeScript/fatme/detach-debug-tools-properyl
Detach debug tools properly
2 parents f5468d4 + 0535ae7 commit 79b62b6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Debugs your project on a connected device or in the iOS Simulator. <% if(isHtml)
2020
* `--start` - Attaches the debug tools to a deployed and running app and launches the developer tools of your Safari browser.
2121
* `--emulator` - Indicates that you want to debug your app in the iOS simulator.
2222
* `--no-client` - If set, the NativeScript CLI attaches the debug tools but does not launch the developer tools in Safari.
23+
* `--timeout` - Sets the number of seconds that NativeScript CLI will wait for the debugger to boot. If not set, the default timeout is 60 seconds.
2324

2425
### Attributes
2526
* `<Device ID>` is the index or name of the target device as listed by `$ tns device`

lib/services/android-debug-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class AndroidDebugService implements IDebugService {
5555
return (() => {
5656
let packageFile = "";
5757

58-
if(!this.$options.debugBrk && !this.$options.start) {
58+
if(!this.$options.debugBrk && !this.$options.start && !this.$options.getPort && !this.$options.stop) {
5959
this.$logger.warn("Neither --debug-brk nor --start option was specified. Defaulting to --debug-brk.");
6060
this.$options.debugBrk = true;
6161
}

0 commit comments

Comments
 (0)