简体   繁体   English

我如何在 xcode 中获得错误文档提示

[英]how do i get error documentation hint in xcode

在此处输入图像描述

I'm watching a tutorial and a question mark shows up by the purple error message with a link straight to the docs that answers why.我正在观看教程,紫色错误消息显示一个问号,并带有直接指向回答原因的文档的链接。 I'm losing what's left of my sanity trying to figure out how to turn that feature on.我正在失去理智,试图弄清楚如何打开该功能。 Does anyone know how?有谁知道怎么做? Latest version of Xcode btw.顺便说一句,最新版本的 Xcode。

The purple message comes from Main Thread Checker.紫色消息来自主线程检查器。 It's diagnostics tool that detects improper access to UI components at runtime.它是一种诊断工具,可在运行时检测对 UI 组件的不当访问。

Enable it in the scheme editor on the Diagnostics tab.在诊断选项卡上的方案编辑器中启用它。

More info on diagnostics tools in Apple documentation: Diagnosing Memory, Thread, and Crash Issues Early Apple 文档中有关诊断工具的更多信息: 及早诊断内存、线程和崩溃问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM