dbg! looks neat. It made me wonder if any of the statically typed compiled languages have an equivalent of Ruby's binding.pry or JS's debugger call? That is, something like
x = foo();
invoke_debugger(); // An interactive console appears here.
y = bar(x)