<!--
{
  "availability" : [
    "iOS: 2.0.0 - 11.0.0",
    "iPadOS: 2.0.0 - 11.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.4.0 - 10.13.0",
    "tvOS: 9.0.0 - 11.0.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "CFNetwork",
  "identifier" : "/documentation/CFNetwork/CFNetDiagnosticDiagnoseProblemInteractively(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "CFNetwork"
    ],
    "preciseIdentifier" : "c:@F@CFNetDiagnosticDiagnoseProblemInteractively"
  },
  "title" : "CFNetDiagnosticDiagnoseProblemInteractively(_:)"
}
-->

# CFNetDiagnosticDiagnoseProblemInteractively(_:)

Opens a Network Diagnostics window.

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

## Parameters

`details`

A network diagnostics object, created by [`CFNetDiagnosticCreateWithStreams(_:_:_:)`](/documentation/CFNetwork/CFNetDiagnosticCreateWithStreams(_:_:_:)) or [`CFNetDiagnosticCreateWithURL(_:_:)`](/documentation/CFNetwork/CFNetDiagnosticCreateWithURL(_:_:)), for which the window is to be opened.

## Return Value

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

## 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)