Skip to content

Crash when attempting to debug on remote iOS device #34647

@josephcassano

Description

@josephcassano

Description

I am running Visual Studio 2026 18.4.2, Xcode 26.2, and attempting to debug on an iPhone running 26.4. The iPhone is connected to a Mac running Tahoe 26.3.1. I am able to successfully pair the mac in Visual Studio. I am also able to launch the application without debugging and it deploys to the phone without issue. I receive the following debug output log when attempting to debug.

Launching 'MauiApp2' on 'iPhone'...
INFO: [iOS Debugger] Connecting to "iPhone" over USB on port 10000...
INFO: Creating command connection...
INFO: Starting debugger connection to the app 'MauiApp2'. Debugger port: 50134, Device port: 10000
INFO: Connecting to remote debugger on port 50134...
INFO: Connecting to debug stream from device...
INFO: Connecting to debug stream from remote debugger...
INFO: [iOS Debugger] Connecting to "iPhone" over USB on port 10000...
INFO: [iOS HotReload] Connecting to "iPhone" over USB on port 11000...
INFO: [iOS Debugger] Connecting to "iPhone" over USB on port 10000...
INFO: Connecting to debug console stream...
INFO: Debugger connection signal received
INFO: Debugger connection completed
INFO: [iOS Debugger] Connected to "iPhone" over USB on port 10000.
INFO: [iOS Debugger] Connected to "iPhone" over USB on port 10000.
INFO: [iOS Debugger] Connected to "iPhone" over USB on port 10000.
The vsdbg debug session for project XXX has been stopped
The program 'MauiApp2' has exited with code 0 (0x0).
Failed to Stop app: An error occurred on client IDB18337 while executing a reply for topic xvs/idb/stop-app
The app has been terminated.
INFO: The debug stream is no longer available for writing
INFO: Closing debug connection from device (USB)
INFO: Disposing input and output streams...
INFO: The debug streams are no longer available for reading or writing
INFO: Closing debug connection from remote debugger (TCP)
INFO: Disposing input and output streams...

The ios logs are not helpful and simply state the app was terminated because it took longer than 20 seconds to run.

Things I have tried:

  1. Temporarily disabled the firewall on the mac
  2. Turned off Hot Reload
  3. Removed and retrusted iphone
  4. Attempted to wirelessly debug (option was not available)
  5. Attempted to update Xcode to version 26.4

There seems to be a problem communicating with the ports on the iOS device.

Steps to Reproduce

  1. Create a new MAUI application using Visual Studio 2026 18.4.2,
  2. Pair with a Mac running Xcode 26.2 and MacOS Tahoe 26.3.1.
  3. Connect an iPhone running 26.4 to the Mac
  4. Attempt to run and debug the application on the iPhone.

Link to public reproduction project repository

No response

Version with bug

10.0.50

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    s/move-to-vs-feedbackTells automation to ask the person to use VS Feedback to report the issuet/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions