---
title: "CFNetDiagnosticDiagnoseProblemInteractively(_:)"
framework: cfnetwork
role: symbol
role_heading: Function
path: "cfnetwork/cfnetdiagnosticdiagnoseprobleminteractively(_:)"
---

# CFNetDiagnosticDiagnoseProblemInteractively(_:)

Opens a Network Diagnostics window.

## Declaration

```swift
func CFNetDiagnosticDiagnoseProblemInteractively(_ details: CFNetDiagnostic) -> CFNetDiagnosticStatus
```

## Parameters

- `details`: A network diagnostics object, created by doc://com.apple.cfnetwork/documentation/CFNetwork/CFNetDiagnosticCreateWithStreams(_:_:_:) or doc://com.apple.cfnetwork/documentation/CFNetwork/CFNetDiagnosticCreateWithURL(_:_:), for which the window is to be opened.

## Return Value

Return Value CFNetDiagnosticNoErr if no error occurred, or CFNetDiagnosticErr if an error occurred that prevented this call from completing successfully.

## Discussion

Discussion This function opens the Network Diagnostics window and returns immediately once the window is open. Special Considerations This function is thread safe as long as another thread does not alter the same CFNetDiagnosticRef at the same time.

## See Also

### Network Diagnostics

- [CFNetDiagnostic](cfnetwork/cfnetdiagnostic.md)
- [CFNetDiagnosticStatusValues](cfnetwork/cfnetdiagnosticstatusvalues.md)
- [CFNetDiagnosticCopyNetworkStatusPassively(_:_:)](cfnetwork/cfnetdiagnosticcopynetworkstatuspassively(_:_:).md)
- [CFNetDiagnosticCreateWithStreams(_:_:_:)](cfnetwork/cfnetdiagnosticcreatewithstreams(_:_:_:).md)
- [CFNetDiagnosticCreateWithURL(_:_:)](cfnetwork/cfnetdiagnosticcreatewithurl(_:_:).md)
- [CFNetDiagnosticSetName(_:_:)](cfnetwork/cfnetdiagnosticsetname(_:_:).md)
