Run your app with sanitizers, API checks, and memory management diagnostics

While testing and debugging your app, use the scheme editor to enable runtime sanitization, runtime API checking, and memory management diagnostics.

To learn more about these diagnostics options, go to Code Diagnostics.

  1. In the main window, choose Edit Scheme from the scheme menu in the toolbar.

  2. In the left column, select the Run scheme action.

  3. Click Diagnostics at the top of the right column.

  4. Enable the desired runtime diagnostics.

    If an option is not available for the build, the option is disabled.

  5. To create a breakpoint for Thread Sanitizer or Main Thread Checker, click the arrow next to the option.

  6. Click Close.

See alsoSpecify runtime arguments and environment variables for your appProfile the performance and behavior of your appConfigure schemes