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
233 stars 13 forks source link

[BUG] not detecting iPhone device "connected" over network when starting debugging #1254

Open softlion opened 4 months ago

softlion commented 4 months ago

Describe the Issue

I'm using vscode on Mac to debug a maui app on a physical iPhone, connected via network and visible as connected in the organizer window of xcode , and actively streaming logs in the Console app.

Steps To Reproduce

When I start debugging the app, it builds, then pauses on this message:

image

But xcode says it's connected:

image

Expected Behavior

I expect it to continue debugging.

Instead I have to plysically connect the phone using a USB cable. After that, it does start debugging.

Then I get another issue: the physical port of the USB connector on my old iPhone is damaged by time, and has "micro disconnections" when you breath near the USB cable.

But I still need to test the app on this old iPhone.

Environment Information

| VS Bug 2137256

ndreisg commented 6 days ago

I have a similar issue, but in my case the device doesn't even appear as a debug target in vscode. When I have the iPhone connected via cable, I can select it in vscode and in Xcode. When I unplug it, I can still select it in Xcode but not in vscode.

Please also note that this documentation should be updated to also cover vscode in addition to VS2022.

Environment Information MacOS 15.1 Xcode 16.0 .NET 8.0.403