Capturing iPhone console log when running Instrument's UI Automation - iphone

In Xcode, I can run my application with the console open by using "Run->Console" and then executing a "Build and Run" command. Now I've written a UI Automation script that I would like to run while capturing the console log. When I press "record" in instruments, an instance of my application is started and the test is executed, but no output is displayed to the console. Is there a way to run the two in parallel? Or to automatically capture what would be displayed to the application's console when running a UI automation script?
Thank you

When running my application through the UI Automation tool the first time, I opened Organizer in Xcode and saw that the console logs were empty. Thus, I believed that the logs were not being written to even the Organizer console. I found that this was a bug in my version of Xcode as discussed in this stack overflow question (Why is XCode Organizer console sometimes empty when I connect my iPhone). I was eventually able to get my Organizer console log to display while the UI Automation was running.

Related

How to view Flutter debug console output for a release version of the app?

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.

Debug/error log getting printed in the terminal while launching App on Linux platform

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.

iOS app builds successfully but simulator does not run

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!

How to view logs in Samsung Smart TV log viewer

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.

Application hangs when run with Xcode but works fine otherwise

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