[erlang-questions] How to see debug messages of

Allen Kim <>
Sun Sep 25 06:39:07 CEST 2011


got it. could not stop myself to find this command.

inets:enable_trace(max,io).

From: Allen Kim <<mailto:>>
Date: Sat, 24 Sep 2011 12:02:07 -0500
To: erlang-questions <<mailto:>>
Cc: Allen Kim <<mailto:>>
Subject: How to see debug messages of

Hi

I m having some issues of having 1% of  httpc:request/4 ends up with {error, socket_closed_remotely}, 99 % are good with 200.

I want to debug what's happening inside and I saw there are debug message already in code.

What should I do to see those ?hcrd/2 messages?

-module(httpc_handler).

-behaviour(gen_server).
...
connect_and_send_first_request(Address,
                   #request{settings    = Settings,
                    headers     = Headers,
                    address     = OrigAddress,
                    scheme      = Scheme} = Request,
                   #state{options = Options} = State) ->

    ?hcrd("connect",
      [{address, Address}, {request, Request}, {options, Options}]),
    .....


Allen Kim


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110924/fe94715d/attachment.html>


More information about the erlang-questions mailing list