nativescript-cli icon indicating copy to clipboard operation
nativescript-cli copied to clipboard

Livesync with console.log

Open N3ll opened this issue 11 years ago • 8 comments

From @prijindal on November 1, 2015 18:26

Currently you can't log anything with livesync Any plans on upgrading livesync to show log output?

Copied from original issue: NativeScript/NativeScript#1009

N3ll avatar Nov 02 '15 10:11 N3ll

From @x4080 on November 2, 2015 2:18

+1

N3ll avatar Nov 02 '15 10:11 N3ll

From @manijak on November 2, 2015 9:58

+1

N3ll avatar Nov 02 '15 10:11 N3ll

One way of solving it would be to make it easier for the developer to start view the log files, as described in this issue https://github.com/NativeScript/NativeScript/issues/1009#issuecomment-152999397

emiloberg avatar Nov 02 '15 12:11 emiloberg

This is an extreme must. Right now it is soo slow to iterate. Also, I'm not even sure if livesync even works properly on iOS. The livesync starts, but the daemon seems to just stop running after the first sync?

rclai avatar Nov 18 '15 21:11 rclai

I found that livesync ios don't update changed .ios the Android side works though

x4080 avatar Nov 19 '15 03:11 x4080

@x4080,

I tried what you reported with the latest {N} CLI 1.5 Release Candidate and experienced only this issue: https://github.com/NativeScript/nativescript-cli/issues/1234.

Please, give a try to {N} 1.5 when released and let us know if you still experience such problem by opening a separate issue.

vchimev avatar Nov 23 '15 16:11 vchimev

There is an issue using console.log during LiveSync that on Android after making a change to a .js file (respectively the app restarts) than the console.log messages duplicate. /CC: @Fatme

vchimev avatar Nov 23 '15 16:11 vchimev

Sum up:

  • consoloe.log() will be supported with LiveSync in {N} CLI 1.5.0 for Android device/emulator and iOS device
  • consoloe.log() support with LiveSync for iOS simulators implementation could be followed here: https://github.com/NativeScript/nativescript-cli/issues/1262
  • the issue described above for duplicate console.log messages during LiveSync on Android will be resolved in {N} CLI 1.5.1

vchimev avatar Nov 27 '15 08:11 vchimev