iOS breakpoints - symbolic breakpoints

iOS breakpoints - symbolic breakpoints

Preface

Symbolic Breakpoint can be used to interrupt the execution of a specified method. Very suitable for determining whether a specified method performs abnormally. For example, in some scenarios, it is not possible to break points in the packaged SDK. In this case, you can use symbolic breakpoints to debug methods in the SDK. (The premise is that you need to know the specific method name)

text

  • First we need to click here in the project list. In this list, all the breakpoint information you hit will be displayed.

Insert image description here

  • Second, click the "+" button at the bottom of the list and select the Symbolic BreakPoint option to create a symbolic breakpoint.
    Insert image description here
  • After that, you can see the following window.

Insert image description here
Name: Breakpoint name (cannot start with a number or contain spaces).
Symbol: The method you want to interrupt. For example: -[Viewcontroller test]. -Represents instance method, please use "+" if it is a class method.
Module: You can add restrictions to methods that meet the name conditions. For example, the method is called in many places, but you only need to break the method in a certain place. (Generally, no need to fill in)
Condition: Add conditions. The breakpoint will only take effect when the conditions we filled in are met.
Ignore: Can be used to ignore several breakpoints from taking effect.
Action: Allows you to do some operations after the breakpoint takes effect. (Applescript, capture animation frame rate, debugger command (lldb), input log record, terminal command (shell), play sound).
Options: You can choose whether to automatically continue executing the program after executing the Actions.

Guess you like

Origin blog.csdn.net/qq_38863196/article/details/124490162