Easily create log-and-continue breakpoint in Xcode

Often, when I need to know if I got into the code, I will write an instruction println("We made it this far")

. Sometimes this can be done, or an employee does one of their actions, and eventually our codebase becomes littered with them.

An alternative is to reset the breakpoint at this point in your code and add a Log Message action, as well as an Automatically continue after evaluating actions check. However, it is a three-step process, and falling println

remains the least resistance.

Is there an easier way to create this breakpoint than clicking in the sidebar and right-clicking to edit? Is there a way to create this as a workflow using Automator or AppleScript and bind it to a hotkey?

+3


source to share





All Articles