Skip to content
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

LiveSync does not show console logging statements #763

Closed
tjvantoll opened this issue Aug 7, 2015 · 11 comments
Closed

LiveSync does not show console logging statements #763

tjvantoll opened this issue Aug 7, 2015 · 11 comments
Assignees
Milestone

Comments

@tjvantoll
Copy link
Contributor

Hi all,

When I use livesync for development, e.g. tns livesync [platform] --watch, I expect my console logging statements to get shown in the same terminal that remains open watching for changes, but currently that's not happening. Could this be supported?

Thanks,
TJ

@emiloberg
Copy link

+1

This is really crucial. Right now you can't do any log statements when using livesync, which kinda defeats the whole purpose of a streamlined development environment. I had to revert to doing full builds again.

@tjvantoll
Copy link
Contributor Author

The other thing I'll add is the livesync also hides stack traces. So if you create a syntax error you have no way of knowing what went wrong.

@Fatme Fatme added this to the 1.2.3 milestone Aug 13, 2015
emiloberg pushed a commit to emiloberg/oppna-program-reklistan-app that referenced this issue Aug 13, 2015
@Fatme Fatme modified the milestones: 1.3.0, 1.2.3 Aug 14, 2015
@Fatme
Copy link
Contributor

Fatme commented Aug 14, 2015

It is trivial to show device log output for tns livesync <platform> but it is a little bit challenging to support it for tns livesync <platform> --watch. We'll do our best to include it in 1.3 release of {N}.

@emiloberg
Copy link

If it's trivial to add for tns livesync, may I suggest that that is done first (and separate) from the tns livesync --watch. We can solve the --watch functionality other ways in the meantime.

Example: Me, I already have a gulpscript watching all files (as I'm doing ES2015 to ES5 transpilation). That watch script can easily fire the tns livesync (no --watch) command.

@teobugslayer teobugslayer modified the milestones: 1.3.0, 1.4.0 Aug 31, 2015
@ligaz ligaz changed the title Livesync does not show console logging statements LiveSync does not show console logging statements Sep 17, 2015
@ligaz ligaz modified the milestones: 1.4.0 (Under review), 1.5.0 Sep 17, 2015
@dmccuskey
Copy link

+1

in the meantime, i've been using another terminal to tail the log generated by the simulator (iOS). ~/Library/Logs/CoreSimulator/<sim-id>/system.log

@teobugslayer teobugslayer removed this from the 1.5.0 milestone Oct 5, 2015
@manijak
Copy link

manijak commented Dec 17, 2015

This is still not available?

@lelong37
Copy link

+10

@ligaz
Copy link

ligaz commented Feb 25, 2016

Hey all,

This feature has been finally implemented for all platforms and emulators/simulators in 1.6.0. Please give it a try and share your feedback.

@ligaz ligaz closed this as completed Feb 25, 2016
@manijak
Copy link

manijak commented Feb 25, 2016

Doesn't seem to be working here... I still don't see any console.log items when using livesync on ios with the --watch flag

@tjvantoll
Copy link
Contributor Author

Doesn't seem to be working here... I still don't see any console.log items when using livesync on ios with the --watch flag

@manijak Same here. #1262 is the open issue to track that.

@philpalmieri
Copy link

you can run tns debug ios --watch, which shows the debugger with console logging

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

No branches or pull requests