During the debugging session, you can quickly evaluate an arbitrary expression from the editor. Start a debugging session &shortcut:Debug; and click the expression while holding Alt.

Evaluate an arbitrary expression from the editor

GoLand tips of the day, build 2078