3

I'm getting 0.0 printed repeatedly in my debug output area. It prints it maybe about every 0.5 seconds or so. I've been trying to find where this is coming from for quite some time and I cannot seem to find it. Is there any way to see where in my code this is being printed? Here's an image of what is happening:

0.0 being printed in debut output

2
  • Start by searching for print or NSLog in your code. Commented Oct 3, 2018 at 21:43
  • @rmaddy I did that but I got 1100 results. I have pod files etc that print stuff Commented Oct 3, 2018 at 21:44

1 Answer 1

4

One possible way to find this is to set a symbolic breakpoint on the symbol print and then run your app. When any code in your app attempts to call print, the debugger will stop within the assembly code from the print function. Look at the stack trace in the debugger to see what is calling print. Then click the "step out" button in the debugger to finish that call to print and see if 0.0 appears in the console. If it does then that print is probably your issue.

It's possible the output is not using print. It could be NSLog or OSLog.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks a bunch! It ended up being that I had a timer in the background that I accidentally had started whenever the view loads and I must have been printing to test something and I just neglect to remove it. But thanks for the help because without you telling me how to do that, I would've probably never have found that!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.