|
-
Sep 3rd, 2010, 02:37 PM
#1
Thread Starter
New Member
Deep Trace. Log of every executed line of code
Hi all,
I'm looking for a deep trace log that logs every line of code that is being executed. (Thread ID, Filename, line, time) Any ideas? I'm aware that this produces masses of logdata and I don't wanna litter my code with debuglog every other line.
Does the .net framework offer such a thing?
Cheers in advance
Sam
-
Sep 10th, 2010, 01:52 PM
#2
Re: Deep Trace. Log of every executed line of code
I think you should look into the .Net profiling API. AOP concepts may also help (something like PostSharp, although PostSharp can help you do logging at the method/property level but not down to the code line level.
I must say that your original request sounds like a bit of an overkill. What exactly would you log if you could gain access at runtime to each and every line of code before it was executed?
-
Sep 10th, 2010, 05:37 PM
#3
Thread Starter
New Member
Re: Deep Trace. Log of every executed line of code
Thank you ntg,
that doesn't look like a 5 Minute solution... I'll look into later. My time is short currently..
-
Oct 1st, 2010, 07:46 AM
#4
Re: Deep Trace. Log of every executed line of code
You could take a look at NLog
-
Oct 1st, 2010, 12:19 PM
#5
Thread Starter
New Member
Re: Deep Trace. Log of every executed line of code
NLog appears to me like any other logging framework? If it is capable of doing what I was looking for...where exactly would I find the feature?
-
Oct 1st, 2010, 01:11 PM
#6
Re: Deep Trace. Log of every executed line of code
Let me guess... you're looking for something you can just reference, or drop in, do nothing else, and get what you want, right?
Doesn't exist. Not like that anyways... there's a reason everything looks like "any other logging framework" ... how is anything to know what you want logged? I sure as heck don't need everyline that's run logged... just waypoints along the way. And then there's the volumes of data that would get generated... I'm not sure how one would be able to make sense of it AND still maintain their own sanity.
-tg
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|