I see a string being output to my Terminal, when I ran an executable. I have the source code (in C) of the executable, but it was not written by me. I compiled it with -g flag. Is there any way to know which line in which file resulted in the output, with dtrace, lldb, gdb, or any other means?
I am using macOS 10.13. When I ran gdb and the following: catch syscall write
I got this error: The feature 'catch syscall' is not supported on this architecture yet.
Is there any way that can achieve my goal?