Debug NEPacketTunnelProvider

I develop VPN app with NEPacketTunnelProvider.


I am able to attach Debugger and set breakpoint.

I have breakpoint on startTunnel and stopTunnel and they work.


Sometimes when network uploads packets at high speed (from iPhone to internet, I am doing speedtest.net) like 50mbit VPN icon disapears. I do not get exception, break point. Memory usage is not noticably jumping.


I just do not have idea how to debug that.


If I press STOP VPN button in VPN app then I get breakpoint in stopTunnel.


There were exceptions and debugger was showing where it was and fixed those bugs. But not in that case now.


"View Device Logs" is not showing crash for my app.


Anyway "View Device Logs" shows crashes for another VPN app that I downloaded from AppStore and do not use right now.

Does another VPN can sit in background when it is turned off and interfer with VPN app that I develop?


May be I reboot iPhone and make another set of tests or see I will get crashs in "View Device Logs" for app that I have not ran after reboot.


Any ideas how to debug ?


PS Also I do not get live console log from Network Extension. Is there way to enable it?