How to debug a CoreSpotlight extension?

My CoreSpotlight extension seems to exceed the 6 MB memory limit. What’s the best way to debug this?

I've tried to attach the debugger on the Simulator but the extension seems to be never launched when I trigger the reindex from Developer settings. Is this supposed to work?

On device, I am able to attach the debugger. However, I can neither transfer the debug session to Instruments, nor display the memory graph. So I've no idea how the memory is used.

Any recommendations how to move forward? Is there a way to temporarily disable the memory limit since even with LLDB attached, the extension is killed.

How to debug a CoreSpotlight extension?
 
 
Q