Break on _NSLockError() to debug … How to?

前端 未结 3 799
無奈伤痛
無奈伤痛 2020-12-30 23:34

During debugging the console always spits me an error message: \"Break on _NSLockError() to debug\"

My assumption is: in XCode i have to appear a certain breackpoint

3条回答
  •  再見小時候
    2020-12-30 23:51

    To do this automatically for your project in XCode:

    1. In Xcode, Option-Command-B to open the Breakpoints window (or Run>Show>Breakpoints).
    2. Where it says "Double-Click for Symbol", double click... and paste in "_NSLockError".
    3. Click anywhere else in the window, and your new entry will automatically be updated (or just add it manually) with Module = "Foundation" (without the quotes)
    4. Build & Go and you will now drop into the debugger automatically when you hit an automatically-detected deadlock.

提交回复
热议问题