logging - How can I get trace of my linq query (using linqtotwitter on windows 8 app in c# and xaml) -
i'm developping windows 8 metro app using linqtotwitter.
i need trace of linq queries in log file searched , didn't find hox can this. read speak linq sql, database, don't have database. information querying twitter api via linqtotwitter.
how can trace of query?
my code:
user usersresponse = new user(); usersresponse = (from user in twitterctxprop.user user.type == usertype.lookup && user.screenname == name select user).singleordefault();
it's open source, check source see if developer used systems.diagnostics trace, nlogger or other logging framework. if web.config edits can view trace. if used outputdebugstring, can use debugview http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx see trace.
if didn't instrument library trace, (not developers buy idea of trace), you'd want pick favorite library , add trace commands.
and finally, if interested in final result (but not how library go there) use fiddler see goes across wire twitter: http://www.fiddler2.com/fiddler2/
Comments
Post a Comment