Skip to content

Console.log has no output on terminal #3118

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

Closed
NickIliev opened this issue Sep 13, 2017 · 14 comments
Closed

Console.log has no output on terminal #3118

NickIliev opened this issue Sep 13, 2017 · 14 comments

Comments

@NickIliev
Copy link
Contributor

From @bigradish on September 13, 2017 2:41

When I follow the steps in the "Debugging apps" section of your tutorial https://docs.nativescript.org/tutorial/chapter-1 , both console.log and console.dir have no output on the terminal.

More info:

  1. development machine: Windows 10 64bit
  2. target platform: android
  3. cli version: 3.2.0
  4. Cross-platform modules: 3.1.1
  5. Runtime: 3.2.0
  6. Plugin: no plugin used, just the HelloWorld project in the tutorial.

Thank you.

Copied from original issue: NativeScript/NativeScript#4835

@christian-kolb
Copy link

I have the same issue on the same CLI and runtime version but on Mac and with iOS as target platform.

@christian-kolb
Copy link

If I run the app with tns debug ios --watch I get console output in the Nativescript Inspector. But only there and this seems to be the only way to get to the logging. The problem is for all logging information including errors.

@christian-kolb
Copy link

@bigradish and @NickIliev Did one of you try to use an older version of the CLI yet? I first thought it might be related to the XCode update and the new iOS 11, but as you're using Android on Windows those two things don't seem to be related.

@glen-stephens
Copy link

glen-stephens commented Sep 27, 2017

@christian-kolb I just upgraded to XCode 9 and iOS 11 and my console.log quit outputting to the terminal. Was working fine previous to updating XCode. Have not been able to get it working again. tns debug ios --watch does output to the nativescript console, but not the terminal. Any help or suggestions would be awesome!

@thegermin8er
Copy link

Same as glen-stephens

@etabakov
Copy link
Contributor

Hey guys,
Regarding the problem with the missing logs with XCode9 / iOS 11, this is caused by changes in the latest iOS and how event logging is handled. We are working on resolution and it should be available in the next minor release.

Regarding the problem with Windows and Android - this is not related to the above issue. We will take a look and let you know.

@NathanaelA

This comment was marked as abuse.

@glen-stephens
Copy link

@etabakov If it helps, console.log does work to the terminal when running on an actual device, just not from the simulator.

@KristianDD
Copy link
Contributor

Here is a separate issue for iOS11 Simulator and Xcode9: #3141. Lets continue the discussion there.

@bigradish
Copy link

Why this issue has not received any process till now?

@Natalia-Hristova
Copy link

Can confirm that console.log() and console.dir() work on mac Xcode 9.2 simulator and device and on Windows - emulator and device.
using current rc versions of nativescript and runtimes. All related fixes will be available in next official release.

You can test it out too in rc --> npm i -g nativescript@rc tns platform add ios@rc and please share if you still encounter the same problems.

@dexter2019
Copy link

I am still facing the same issue? ios12 and xcode 9.4

@socalrunner
Copy link

Same issue here. ios12 and xcode 9.4. tns run ios stops at refreshing application, won't refresh the application and won't log to the console.

@rosen-vladimirov
Copy link
Contributor

Hey guys, you need to update your Xcode in order to make tns run ios working on the new iOS version. Reference: #3940

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

No branches or pull requests