![Hands-On Design Patterns with Swift](https://wfqqreader-1252317822.image.myqcloud.com/cover/72/36699072/b_36699072.jpg)
上QQ阅读APP看书,第一时间看更新
Configuring your project
In order to see the memory allocation backtraces, we need to enable Malloc Stack in our Scheme. You can do so by following these steps:
- Open your Scheme settings with ⌘ | <, or by navigating to Product | Scheme | Edit Scheme...
- Navigate to the Diagnostics tab
- Ensure that you select the options shown in the following screenshot:
![](https://epubservercos.yuewen.com/A91D09/19470383901517606/epubprivate/OEBPS/Images/009d3810-7c53-4b9a-855a-7fd57f4c7089.png?sign=1739271185-jZop4G226KMLMt4f9xbCpfFDwW3LPVwu-0-921896b2292b8c97f134933c9673a253)
With this configuration on your Scheme, you can run your project again, and we'll be able to debug memory issues in depth, right into Xcode.