|
|
| Author |
Message |
|
| Guest |
Posted: Sat Sep 24, 2011 5:02 pm |
|
|
|
Guest
|
Hi
I m having some issues of having 1% of |
|
|
| Back to top |
|
| Guest |
Posted: Sat Sep 24, 2011 6:17 pm |
|
|
|
Guest
|
# Allen Kim 2011-09-24:
> 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?
The macro ends up defined in terms of do-nothing inets:report_event/4
function -- its only purpose is to serve as target for native tracing
facility built into BEAM (and exposed to user via dbg(3) module).
There seem to be a couple of convenience functions that should make
the whole process much more user-friendly than raw dbg(3) API:
-export([enable_trace/2, enable_trace/3, disable_trace/0, set_trace/1,
report_event/4]).
Hopefully this should get you started -- I'm not using httpc(3) at all
and won't pretend to be very fluent with dbg(3) either.
BR,
-- Jachym
_______________________________________________
erlang-questions mailing list
erlang-questions@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions
Post received from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Sun Sep 25, 2011 4:39 am |
|
|
|
Guest
|
got it. could not stop myself to find this command.
inets:enable_trace(max,io).
From: Allen Kim <bighostkim@gmail.com (bighostkim@gmail.com)>
Date: Sat, 24 Sep 2011 12:02:07 -0500
To: erlang-questions <erlang-questions@erlang.org (erlang-questions@erlang.org)>
Cc: Allen Kim <allen.kim@epicadvertising.com (allen.kim@epicadvertising.com)>
Subject: How to see debug messages of
Hi
I m having some issues of having 1% of |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|