Using print() to log messages works in debug mode and I can see output in debug console of VSCode or in terminal. How can I get those with release build ? I have seen release build producing such logs but not sure how to get those.
Run
$ flutter logs
in terminal with terminal opened in a flutter project directory, connect phone with computer and use the release version of the app on phone to see logs similar to the debug version shows.
Edit: Not sure if this works for iOS.
I have built a app using Install4j on linux. While launching the app the debug/error logs are getting printed in the terminal in which I have launch the app. The same is working fine on MAC. I have disabled the redirection of the stterr/stdout but I am not sure why it is getting printed. Kindly suggest how to stop it.
I'm running the following tutorial for developing RestKit applications -> https://github.com/RestKit/RKGist/blob/master/TUTORIAL.md.
I have advanced to this step -> "You should now be able to build & run the app via the Product > Run menu (or hit Apple+R). The application should start as expected and show you an empty table view similar to the following".
My workspace builds successfully but the simulator does not start. I have put an NSLog statement in ApplicationDidFinishLaunching:withOptions: and that log statement is not displayed.
I have done multiple single project tutorials and they have all built and run successfully. This is the first tutorial that I am attempting with builds a workspace with CocoaPods and includes third party components such as AFNetworking and RestKit. I have researched the issue on the other posts on this topic on StackOverflow and have been unable to correct the issue.
Thanks!
In the Samsung Smart TV menu there is an option to "Start receiving Smart TV logs". It's "OFF" by default.
When I clicked it I received a prompt to "Check the Console View". I opened the console view and ran the app on emulator, but i couldn't see any logs there.
I know that when the emulator is launched, a separate window showing all the alert(".."); logs is also launched.
I want to know how to use of this option of viewing logs via Console View. I'm new to Eclipse and Smart TV SDK. Is there anything that I'm missing?
How is this different from the logs that are already being shown with the emulator
The console log is used for debugging in real devices.
Emulator already have it's own debugger console window so the emulator not sending anything to eclipse.
If you want to work with real devices this feature is very useful. Do app sync from TV to your workstation and enable the log receiver. When your synced apps run in the real devices (TV/BDP) the alert from application will sent to eclipse's console window
The app will send its logs back to an active eclipse console on the system from which it downloaded the app.
I'm working with eclipse on windows, so I gave my pc a static ip address and installed the Apache 2.2 web server. After uploading my app, I enable the console and open the console view as you did. Then, I start my app, and I see all the log information in the console.
I find this log information essential, because some services return an error in the emulator, but actually execute successfully on the tv. Many of these services are interacting directly with the tv hardware, and there is no other way to debug them.
For debugging purposes, I run the application using xcode and the UI freezes. If I run the app independently, the application works fine.
Could piping of NSLog statements to the console cause my application to hang?
This bug has been fixed with the release of Xcode 4.4.1. See the following bug report for description:
http://openradar.appspot.com/11972490