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.tracer()
:dbg.p(:all, :c) 
:dbg.tp(Module, :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:

Edit:
Using :dbg.n(:"remshd[…]@127.0.0.1") 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}).
2 Likes

Nice one! Thanks!