Results 1 to 6 of 6

Thread: Deep Trace. Log of every executed line of code

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2010
    Posts
    11

    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

  2. #2
    Frenzied Member ntg's Avatar
    Join Date
    Sep 2004
    Posts
    1,449

    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?
    "Feel the force...read the source..."
    Utilities: POPFileDebugViewProcess ExplorerWiresharkKeePassUltraVNCPic2Ascii
    .Net tools & open source: DotNetNukelog4NetCLRProfiler
    My open source projects: Thales SimulatorEFT CalculatorSystem Info ReporterVSS2SVNIBAN Functions
    Customer quote: "If the server has a RAID array, why should we bother with backups?"
    Programmer quote: "I never comment my code. Something that is hard to write should be impossible to comprehend."
    Ignorant quote: "I have no respect for universities, as they teach not practicle stuff, and charge money for"

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2010
    Posts
    11

    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..

  4. #4
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    Re: Deep Trace. Log of every executed line of code

    You could take a look at NLog
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

  5. #5

    Thread Starter
    New Member
    Join Date
    Feb 2010
    Posts
    11

    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?

  6. #6
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width