nativescript-community / nativescript-vscode-extension

A Visual Studio Code Extension for NativeScript
https://www.nativescript.org/visual-studio-code
Apache License 2.0
82 stars 32 forks source link

[Android] Emulator is killed when stop debugging #260

Closed MartoYankov closed 4 years ago

MartoYankov commented 5 years ago

Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

Describe the bug On Android when debug is started with launch request and there is no connected device, an emulator is started. When debugging is stopped, the emulator is killed.

To Reproduce

  1. Execute tns create anywhere and create a project.
  2. Open VS Code with the project.
  3. Configure launch.json for NativeScript
  4. Click Launch on Android.
  5. Once app is launched, click on the stop icon.

The emulator is killed.

Expected behavior The emulator stays running.

Additional context This doesn't happen with tns run android. It can't be reproduced with iOS.