-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Crash when attempting to debug on remote iOS device #34647
Description
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:
- Temporarily disabled the firewall on the mac
- Turned off Hot Reload
- Removed and retrusted iphone
- Attempted to wirelessly debug (option was not available)
- 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
- Create a new MAUI application using Visual Studio 2026 18.4.2,
- Pair with a Mac running Xcode 26.2 and MacOS Tahoe 26.3.1.
- Connect an iPhone running 26.4 to the Mac
- 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