dotnet / dotnet/maui

[Apple mobile] Debugging: breakpoint never binds on device

Open
#35,929 10 comments 1 reaction 2 assignees Claimed by @thaystg View on GitHub
area-tooling platform/ios platform/macos
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

## Description

Debugging on Apple mobile has two distinct failures on CoreCLR.

Failures:
- **iOS device over USB - breakpoint never binds:** F5 builds, deploys and runs the app, but the breakpoint turns gray and is never hit. vsdbg receives no module-load events over the CoreCLR profiler remote transport, so no symbols resolve. The app itself runs fine and the simulator debugging works on P6.
- **iOS device Wireless - the app doesn't install**

To reproduce:
connect a device, select it as the F5 target, set a breakpoint in `OnCounterClicked`, and press F5 - the app runs but the breakpoint never hits.

Debug Console output over USB:

`
2026-07-09 15:10:14.670 helloworld[2190:879972] You've implemented -[ application:performFetchWithCompletionHandler:], but you still need to add "fetch" to the list of your supported UIBackgroundModes in your Info.plist.
`

Debug Console output Wireless:

```

ERROR: A connection to this device could not be established. (com.apple.dt.CoreDeviceError error 4000 (0xFA0))
DeviceIdentifier = ...
----------------------------------------
Internal logic error: Connection was invalidated (com.apple.CoreDevice.ControlChannelConnectionError error 1 (0x01))
----------------------------------------
Transport error (com.apple.CoreDevice.ControlChannelConnectionError error 0 (0x00))
----------------------------------------
The operation couldn’t be completed. (Network.NWError error 57 - Socket is not connected)
NSDescription = Socket is not connected
----------------------------------------
Internal logic error: Connection was invalidated (com.apple.CoreDevice.ControlChannelConnectionError error 1 (0x01))
----------------------------------------
Transport error (com.apple.CoreDevice.ControlChannelConnectionError error 0 (0x00))
----------------------------------------
The operation couldn’t be completed. (Network.NWError error 57 - Socket is not connected)
NSDescription = Socket is not connected

error MT1006: Could not install the application '.../helloworld.app/' on the device '...': One or more errors occurred. (Failed to execute 'devicectl': 'devicectl -j .../tmpZBrWJh.tmp device install app --device ... .../helloworld.app/' returned the exit code 1.) (Additional output: xcrun devicectl -j .../tmpZBrWJh.tmp device install app --device ... .../helloworld.app/) (Additional output: ERROR: A connection to this device could not be established. (com.apple.dt.CoreDeviceError error 4000 (0xFA0))) (Additional output: DeviceIdentifier = ...) (Additional output: ----------------------------------------) (Additional output: Internal logic error: Connection was invalidated (com.apple.CoreDevice.ControlChannelConnectionError error 1 (0x01))) (Additional output: ----------------------------------------) (Additional output: Transport error (com.apple.CoreDevice.ControlChannelConnectionError error 0 (0x00))) (Additional output: ----------------------------------------) (Additional output: The operation couldn’t be completed. (Network.NWError error 57 - Socket is not connected)) (Additional output: NSDescription = Socket is not connected) (Additional output: ----------------------------------------) (Additional output: Internal logic error: Connection was invalidated (com.apple.CoreDevice.ControlChannelConnectionError error 1 (0x01))) (Additional output: ----------------------------------------) (Additional output: Transport error (com.apple.CoreDevice.ControlChannelConnectionError error 0 (0x00))) (Additional output: ----------------------------------------) (Additional output: The operation couldn’t be completed. (Network.NWError error 57 - Socket is not connected)) (Additional output: NSDescription = Socket is not connected).
```

### Versions
```
SDK: 11.0.100-preview.7.26324.116
MAUI: 11.0.0-preview.6.26324.8/11.0.100-preview.7
ms-dotnettools.csharp version: 2.145.15
ms-dotnettools.csdevkit: version: 3.27.196
ms-dotnettools.dotnet-maui: version: 1.16.88
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.