Post

Replies

Boosts

Views

Activity

Reply to MacOS MapKit - CVDisplayLinkSetPaused alternating true/false several times per second
A seemingly overlooked feature in the Xcode console—filter—can provide a reprieve whenever the output is overly voluminous. One way is to preface your target output with a unique string, replacing occurrences of print("…") with print("[unique prefix] …") where necessary. Of course, this means that all output—yours and others’—without the unique prefix will be excluded, but in this case that is the desired effect. For example, by using print("AWEAPP …") in your code and entering AWEAPP (sans quotes) as the filter, the noise-to-signal ratio will drop to zero, as shown below. Before filtering: After filtering: So, no more endless CV… messages diluting the console output! You can, of course, embellish your output with timestamps, filenames, line numbers, etc. In the end, however, clearing or changing the filter to observe useful output from others would be prudent.
May ’22