microsoft / vscode-dotnettools

This is a feedback repository to capture issues logged for the C# Dev Kit and related extensions from Visual Studio Code
Other
234 stars 13 forks source link

Support iOS physical device debugger with VPN, etc., for MAUI #874

Open gkarabin opened 10 months ago

gkarabin commented 10 months ago

Describe the feature you'd like

When a Mac computer is on a VPN restricted from accessing local network adapters (e.g. my company’s policy for Cisco AnyConnect, as well as some of our customers who use our MAUI SDK) VS Code and the MAUI plugin cannot identify physical iOS devices connected to the computer via USB. When the computer is not connected to VPN the device can be identified and can be debugged.

Please find a way to enable debugging that functions for users who work on VPN.

Failing that, it would be helpful to document system requirements for iOS debugging in the MAUI plugin. It will hard to recommend the plug-in to other corporate users (if it comes out of beta) and this is still an issue.

Alternatives considered

Jetbrains Rider

Environment Information

MacOS version 13.6.3 Xcode version 15.0 VS Code version 1.85.2 (Universal) Extension version 0.7.10 | VS Bug 2000462

softlion commented 5 months ago

Can't you force the IP and port of the debug server ? In csproj file:

    <PropertyGroup Condition="'$(TargetFramework)'=='net8.0-ios' AND '$(Configuration)' == 'Debug'">
        <MtouchExtraArgs>--server=192.168.10.101:9000</MtouchExtraArgs>
        <IOSDebuggerPort>9000</IOSDebuggerPort>
    </PropertyGroup>