How to make :dbg output to appear in my remote console instead of remote node?

I open my remote console via /opt/app/bin/my_app remote_console and when debug via :dbg like so:

:dbg.p(:all, :c), :function, arity, [])

But all output goes to application log instead of my console. Is where any way to show it on console and do not output it in logs?

1 Like

I just tried the same and wondered why there’s no output :confused:

Using :dbg.n(:"remshd[…]@") didn’t result in visible traces as well.

This will help:

dbg:tracer(process, {fun (Msg, N) -> io:format("~p~n", [Msg]), N+1 end, 0}).

Nice one! Thanks!