使用检查器
【Using Inspector】
在本地环境中,我们通常谈论实时调试,即将调试器附加到我们的应用,并添加断点以暂停程序执行。然后我们逐步查看代码路径,并在不同步骤中检查堆。通常在生产环境中使用实时调试器是不可能的,因为我们对机器的访问有限,并且无法中断应用的执行,因为它正在处理业务关键的工作负载。
【In a local environment, we usually speak about live debugging where we attach a debugger to our application and we add breakpoints to suspend the program execution. Then we step through the code paths and inspect our heap over the different steps. Using the live debugger in production is usually not an option as we have limited access to the machine and we cannot interrupt the execution of the application as it handles a business-critical workload.】
如何
【How To】