<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div><div><div>got it. could not stop myself to find this command.</div><div><br></div><div>inets:enable_trace(max,io).</div></div></div><div><br></div><span id="OLK_SRC_BODY_SECTION"><div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> Allen Kim <<a href="mailto:bighostkim@gmail.com">bighostkim@gmail.com</a>><br><span style="font-weight:bold">Date: </span> Sat, 24 Sep 2011 12:02:07 -0500<br><span style="font-weight:bold">To: </span> erlang-questions <<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a>><br><span style="font-weight:bold">Cc: </span> Allen Kim <<a href="mailto:allen.kim@epicadvertising.com">allen.kim@epicadvertising.com</a>><br><span style="font-weight:bold">Subject: </span> How to see debug messages of<br></div><div><br></div><div><div>Hi</div><div><br></div><div>I m having some issues of having 1% of  httpc:request/4 ends up with {error, socket_closed_remotely}, 99 % are good with 200.</div><div><br></div><div>I want to debug what's happening inside and I saw there are debug message already in code.</div><div><br></div><div>What should I do to see those ?hcrd/2 messages?</div><div><br></div><div>-module(httpc_handler).</div><div><br></div><div>-behaviour(gen_server).</div></div><div>...</div><div>connect_and_send_first_request(Address,</div><div>                   #request{settings    = Settings,</div><div>                    headers     = Headers,</div><div>                    address     = OrigAddress,</div><div>                    scheme      = Scheme} = Request,</div><div>                   #state{options = Options} = State) -></div><div><br></div><div><b>    ?hcrd("connect",</b></div><div><b>      [{address, Address}, {request, Request}, {options, Options}]),</b></div><div>
    .....</div><div><br></div><div><br></div><div>Allen Kim</div><div><br></div><div><br></div></span></body></html>