You can set a breakpoint and log it in the console, or even get the stack trace of the breakpoint when it is reached (the code execution does not stop). To set additional settings for the breakpoint, set a breakpoint where you need it, and press &shortcut:EditBreakpoint;.

GoLand tips, #2083