Is it possible for debugger to show memory consumption raising (like a leak) but not Instruments (Leaks) ?

Hello everyone,


I am working on an app that is using a UDP library (CocoaAsyncSocket - available on GitHub).

Basically, it sends some data everytime you move your finger on the screen of the iPhone (like, let's say, a mouse simulator on the iphone).


I have noticed while running the app in xcode7 and on the real device, that in the Debugger tab of XCode, the memory consumptions goes up like crazy. I thought it is a leak, then I went and profiled the app with Instruments , but no leaks are shown in Instruments.


Another bizzare behaviour is that my app crashed after some time using it while it was ran from XCODE , but when ran from the iphone directly, i did not encounter the issue after hours of using it.


So to resume my question, is it possible that its some kind of "bug" when using the xcode debugger?


Thanks in advance!

So to resume my question, is it possible that its some kind of "bug" when using the xcode debugger?

Yes, that’s certainly possible. I’ve seen issue like this before, although with NSURLSession rather with CocoaAsyncSocket.

Please file a bug about this, then post your bug number here, just for the record. It would help if your bug report included a small test project along with screen shots of Xcode’s bad behaviour and an Instruments trace of the good behaviour.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Hey eskimo, thanks for your reply.


I filed a bug , with the number: 24842952

Is it possible for debugger to show memory consumption raising (like a leak) but not Instruments (Leaks) ?
 
 
Q