Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Too much information being presented in Debug Area - Xcode 8

Tags:

xcode

I just upgraded to Xcode 8 and upon building and running my project an enormous amount of information is being printed to the Debug Area.

Here is a sample:

016-09-14 08:37:54.394736 SmartTapp[8645:112431] subsystem: com.apple.network, category: , enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 2, enable_private_data: 0 2016-09-14 08:37:54.395777 SmartTapp[8645:112431] [] tcp_connection_create_with_endpoint_and_parameters 1 www.smarttapp.com 80 2016-09-14 08:37:54.397472 SmartTapp[8645:112431] [] tcp_connection_start 1 starting

How do I turn this off?

I have already tried the suggestion offered here and it didn't work.Hide strange unwanted Xcode 8 logs

like image 392
Martin Muldoon Avatar asked Sep 14 '16 13:09

Martin Muldoon


People also ask

Why breakpoint is not working in Xcode?

See this post: Breakpoints not working in Xcode?. You might be pushing "Run" instead of "Debug" in which case your program is not running with the help of gdb, in which case you cannot expect breakpoints to work!

Where is the debug area in Xcode?

The first change you'll notice when the application is running and Xcode's debugger is attached to the application's process, is the Debug Area at the bottom. What you see depends on the configuration of your Xcode installation, but you should see, at the very least, the debug bar appear at the bottom of the window.

Where does NSLog write to?

NSLog outputs messages to the Apple System Log facility or to the Console app (usually prefixed with the time and the process id). Many of the system frameworks use NSLog for logging exceptions and errors, but there is no requirement to restrict its usage to those purposes.


1 Answers

Open:

  • => Product
  • => Scheme
  • => Edit Scheme
  • => Select "Run"
  • => Second Tab "Argument"
  • => Inside Environment Variables press + button
  • => add Name = OS_ACTIVITY_MODE & set the Value to disable
  • Press Close button

And you are done.

tcp_connection_start debug log

like image 96
Vaibhav Saran Avatar answered Sep 18 '22 13:09

Vaibhav Saran