How to set a breakpoint in library code?

When running my code, I got the following messages in the console:

malloc: *** error for object 0x16fdfee70: pointer being freed was not allocated
malloc: *** set a breakpoint in malloc_error_break to debug

I understand the first message is coming from a bug in my code. The second is trying to help me figure out the issue.

The question is how do I set this helpful breakpoint?

FWIW, I've seen similar "set a breakpoint in ..." messages before in other cases.

Answered by Claude31 in 709328022
Accepted Answer
How to set a breakpoint in library code?
 
 
Q