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

Livesync and debug mode stops after JS error #240

Open tsonevn opened 5 years ago

tsonevn commented 5 years ago

@AhmedAzzabi commented on Sat Nov 10 2018

So I was testing with version 5.0, I noticed that if I have small js error like undefined or null reference exception the debug mode stops, emulator shuts down and looks livesync, which slows my workflow as everytime I have to relaunch emulator and debug also adb.exe process stay hanged their and I need to kill it from task manager in order to reboot properly otherwise debug active but emulator gebynotion does not show like running in background.


@tsonevn commented on Mon Nov 12 2018

Hi @AhmedAzzabi, I tested the described case, however, was unable to recreate the problem. The project was successfully synced after fixing the error which was causing the problem. Regarding that can you provide some more info about your environment(CLI, tns-android, tns-core-modules, node, versions) as well as some steps to reproduce? Also, does this problem happen only on emulator?

AhmedAzzabi commented 5 years ago

Hi @tsonevn the issue is still reproducible, take the sample app that have Tap counter, in onTap click for example put some code that will cause error in JS like "let x= y.z" and y is null this normally will crash the app, you will notice that after the crash the debug mode with VScode is not active anymore and if you used the VScode to launch the debugger with F5 it will close the emulator too. Node version : 10.13.0 tns info √ Getting NativeScript components versions information... ‼ Update available for component nativescript. Your current version is 5.0.0 and the latest available version is 5.0.1. ‼ Update available for component tns-core-modules. Your current version is 5.0.1 and the latest available version is 5.0.2. √ Component tns-android has 5.0.0 version and is up to date. √ Component tns-ios has 5.0.0 version and is up to date.