Run your app with sanitizers, memory management diagnostics, and logging options

While testing and debugging your app, use the scheme editor to enable runtime memory management diagnostics and logging options.

Runtime Sanitization: Address Sanitizer, Thread Sanitizer, Undefined Behavior Sanitizer

Runtime API Checking: Main Thread Checker

Memory Management: Malloc Scribble, Malloc Guard Edges, Guard Malloc, Zombie Objects

Logging: Malloc Stack, Dynamic Linker API Usage, Dynamic Library Loads

  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.

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