-
-
Notifications
You must be signed in to change notification settings - Fork 197
console.log not working inside nativescript #3034
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
Comments
console.log("hello"); |
It looks fine with this files: login.js:
login.xml
app.js
I think two might be the problems:
Can you please test on Android emulator? |
@priyangamani I used lowercase in console.log and exports.loaded, sorry for wrong copy in question |
@dtopuzov I tried to replace my code for which you put me as an example but it does not work, in my case I have this files login.xml
login.js
###app.js It does not throw me any errors and the app runs well on my cell phone but in console it still does not show me anything The android emulator I could not make it run because I did not recognize the device and when it proves with the cell phone then I went with that |
I saw something similar. I followed the official tutorial on Ubuntu 16 LTS, using Android emulator, in livesync mode. I did not get "Hello World" in the output of However, when I ran So running |
XCode 9.0, MacOS High Sierra, iOS simulator test of Hello World template app. console.log does not work. |
For others: instead of using the |
stuck with the same issue
|
after updating everything and doing clean build i could see the logs again, great |
Issue appears to still exist, when using console.debug Version/Environment Details nativescript has 5.3.1 Emulator JS: Angular is running in the development mode. Call enableProdMode() to enable the production mode. |
@Fatme Awesome thanks, worked in iOS, so didn't think it would be a problem on Android. Noted though. |
hmmm... i got nothing on the Device Logs from my Oppo f11 pro.
|
this is still happening for me- console.log statements don't show in terminal when running with |
With the command |
Hi, I'm new using nativescript and I just want to try console.log () but it does not show me anything in the terminal.
I run the program using tns run android using a USB to my phone
Other functions if I run but if I want to show something on console not.
Show me only
Successfully transferred login.js.
Refreshing application ...
Successfully synced application org.nativescript.Groceries on device 3AMCL16128044910.
And it shows nothing more
This is my code at login.js
Exports.loaded = function () {
Console.log ("hello");
};
And in login.xml
The Page UI is so Page loaded = "loaded"
The text was updated successfully, but these errors were encountered: