NativeScript / nativescript-cli

Command-line interface for building NativeScript apps
https://www.npmjs.com/package/nativescript
Apache License 2.0
1.03k stars 195 forks source link

No logs after application restart #4263

Open vchimev opened 5 years ago

vchimev 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

The CLI does not output application logs (e.g. console.log, HMR logs) after application restart.

To Reproduce

tns run <platform> --hmr restart (close/open) the application while the tns process is running

Expected behavior

The CLI outputs application logs (e.g. console.log, HMR logs).

dottodot commented 5 years ago

I've found that using console.log seems fine when using the ios simulator however on an actual device it will work about 1 in 10 times if I'm lucky. It makes debugging pretty much impossible / extremely frustrating.

dottodot commented 5 years ago

Also on the odd occasion when console.log does work it doesn't last i.e it will start showing logs and then just stop.

rosen-vladimirov commented 5 years ago

Hey @dottodot , the current issue is for the case when you restart your application manually. Is this your case? In case not, can you please open a new issue with as much details as possible for your environment and the problem you've faced. Thanks in advance.