Skip to content

debug has stopped working after updating #140

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ishandutta2007 opened this issue May 23, 2017 · 1 comment
Closed

debug has stopped working after updating #140

ishandutta2007 opened this issue May 23, 2017 · 1 comment

Comments

@ishandutta2007
Copy link

ishandutta2007 commented May 23, 2017

The following is output on selecting launch on android

  • Why is the debugger trying to install tns-android? It wasn't like this before.
  • Why is it not finding the command: tns --analyticsClient VSCode debug android --no-client --watch , it shows: The tns command finished its execution with code 127 ?
  • I believe no-client and watch options were not there in documentations of earlier versions either and were reserved for VSCode. I kept it as default launch which is { "name": "Launch on Android", "type": "nativescript", "request": "launch", "platform": "android", "appRoot": "${workspaceRoot}", "sourceMaps": true, "watch": true } . So what changes makes throw code 127 ?
  • 31;1mException: The plugin [email protected] is already installed, yes obviously the plugin is already installed, why are you trying to install it now, ok fine say you want to run again but why should it fail the actual command ?
[NativeScriptCli] execute: tns --analyticsClient VSCode --version
[NSDebugAdapter] Using tns CLI v2.5.4 on path 'tns'
[NSDebugAdapter] Running tns command...
[NativeScriptCli] execute: tns --analyticsClient VSCode debug android --no-client --watch 
[NSDebugAdapter] Watching the tns CLI output to receive a connection token
Copying template files...

[0G  ◜ Installing tns-android
[0G  ◠ Installing tns-android
[0G  ◝ Installing tns-android
[0G  ◞ Installing tns-android
[0G  ◡ Installing tns-android
[0G  ◟ Installing tns-android
[0G  ◜ Installing tns-android
[0G  ◠ Installing tns-android
[0G  ◝ Installing tns-android
[0G  ◞ Installing tns-android
[0G  ◡ Installing tns-android
[0G  ◟ Installing tns-android
[0G  ◜ Installing tns-android
[0G  ◠ Installing tns-android
[0G  ◝ Installing tns-android
[0G  ◞ Installing tns-android
[0G  ◡ Installing tns-android
[0G  ◜ Installing tns-android
[0G  ◠ Installing tns-android
[0G  ◝ Installing tns-android
/Users/ishandutta2007/Documents/Projects/MyApp_tarchec
+-- UNMET PEER DEPENDENCY @angular/[email protected]
+-- [email protected] 
`-- UNMET PEER DEPENDENCY [email protected]
[0G  ◞ Installing tns-android
[0G  ◡ Installing tns-android
[0G  ◟ Installing tns-android
[0G[2K
[31;1mException: The plugin [email protected] is already installed

# debug android
┌─────────────────────────────────────────────────────────────────────────────────┬────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Usage                                                                           │ Synopsis                                                                                           │
│ Deploy on device, run the app start Chrome DevTools, and attach the debugger    │ $ tns debug android                                                                                │
│ 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>] │
│ 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>]              │
│ Attach the debug tools to a running app on device                               │ $ tns debug android --start [--device <Device ID>] [--debug-port <port>] [--timeout <timeout>]     │
│ Attach the debug tools to a running app in the native emulator                  │ $ tns debug android --start --emulator [<Emulator Options>] [--timeout <timeout>]                  │
│ Detach the debug tools                                                          │ $ tns debug android --stop                                                                         │
└─────────────────────────────────────────────────────────────────────────────────┴────────────────────────────────────────────────────────────────────────────────────────────────────┘

### Options
    * --device - Specifies a connected device on which to debug the app.
    * --emulator - Specifies that you want to debug the app in the native Android emulator from the Android SDK.
    * --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.
    * --start - Attaches the debug tools to a deployed and running app.
    * --stop - Detaches the debug tools.
    * --debug-port - Sets a new port on which to attach the debug tools.
    * --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.
    * --no-watch - If set, changes in your code will not be reflected during the execution of this command.
    * --clean - If set, forces rebuilding the native application.
### Attributes
    * <Device ID> is the index or name of the target device as listed by $ tns device
    * <Port> is an accessible port on the device to which you want to attach the debugging tools.
    * <Emulator Options> is any valid combination of options as listed by $ tns help emulate android
[NSDebugAdapter] The tns command finished its execution with code 127.
 
@ivanbuhov
Copy link
Contributor

Hi @ishandutta2007
It seems that this is a known CLI issue. You can try the solution proposed in the original issue.

I am closing this one because of duplication with NativeScript/nativescript-cli#2487.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants