Frequently when I need to know if I've hit a point in code I'll drop in a println("We made it this far")
statement. Sometimes this will get committed, or a coworker commits one of theirs, and eventually our codebase gets littered with them.
An alternative is to drop a breakpoint on that location in code and add a "Log Message" action, as well as check "Automatically continue after evaluating actions". However, this is a three-step process and dropping in a println
remains the path of least resistance.
Is there an easier way to create this breakpoint than clicking 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?