Skip to content
This repository was archived by the owner on Jul 28, 2020. It is now read-only.

How to debug extension? #26

@aevtyushin

Description

@aevtyushin

I read answer in this issue and did everything as written here and here, but my breakpoints are still don't work (NSLog and os_log don't work either).

This is what I see in the console after self.providerManager?.connection.startVPNTunnel()
Last disconnect error for MyAppConfig changed from "The VPN session failed because an internal error occurred." to "none"
Last disconnect error for MyAppConfig changed from "none" to "The VPN session failed because an internal error occurred."

I tried to monitor the event of changes in the VPN status (NSNotification.Name.NEVPNStatusDidChange) and this is what I saw:
VPN Status changed:
Connecting...
VPN Status changed:
Disconnected...

I can't even figure out if a method
func startTunnel(options: [String : NSObject]?, completionHandler: @escaping (Error?) -> Void) works in my class PacketTunnelProvider or not.

One more detail, I do not see my network extension in the list of available extensions (for example, in Instruments).

What else can i try to do for debugging, and how i can understand does my extension work or not?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions