Debugging Apps with Xcode 15: Symbolic Breakpoints

Опубликовано: 08 Январь 2024
на канале: Cocoacasts
850
18

Earlier in this course, we briefly explored the types of breakpoints you can use in Xcode. In the previous video, we focused on file and line breakpoints. This video zooms in on symbolic breakpoints.

Remember that a file and line breakpoint is associated with a specific location in the codebase hence the name. A symbolic breakpoint is different. As the name implies, a symbolic breakpoint is linked to a symbol, such as a method or function name. This type of breakpoint can be helpful for debugging problems that involve code you don't have direct access to. Let me explain what that means.

Symbolic breakpoints are often used in scenarios in which your code interacts with a library or framework, including Apple's libraries and frameworks. Because you don't have access to the source code of the library or framework, it isn't possible to set a file and line breakpoint. Let me show you how symbolic breakpoints work and why they are useful.