Thanks for the great referrals folks. The profiling API looks very powerful, but a little beyond the skills here.
The quick win i think is going to be PostSharp. It also makes the most sense in terms of ease of future maintenance by other developers. Gotta work with the lowest common denominator in the shop. -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] Behalf Of Greg Young Sent: Tuesday, February 05, 2008 12:43 AM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] modifying code files with script. Sounds to me like you want the profiling API ... yes you can use AOP or something like cecil ... btw if you go this path PostSharp already has support for it that you can have going in 10 minutes but why even change your build when you can connect the profiling API at runtime and get the same exact information? Cheers, Greg On Feb 4, 2008 5:16 AM, Phil Sayers <[EMAIL PROTECTED]> wrote: > We have a pretty large codebase, pushing 1 million lines of code. > > Every 6-8 weeks we release an update to our customers with new features & > bugfixes from the prior release cycle. Typically just after a release we > get a spike in bug reports. > I'm looking for a way to enhance the information in our bug reports, so we > can have our customers repro the problem with tracing enabled to get us a > very complete picture of the stack traces. > > I had the idea that i can add some instrumentation to our code using the > Trace.blah. So the first and last line of every method will be: > (pseudo code) > > Trace.Writeline ("Entering Methodname arg1Name = ar1Value|arg2Name = > arg2Value") > Trace.Writeline ("Leaving MethodName") > > Using config file to enable/disable tracing. > The hard part is adding these lines to our existing codebase...too much > typiing for my liking. > > Does anyone know of an addin or existing script tool that can re-write my > code files using regex, codeDom, or even a Vs.net addin that can help here > and auto-magically insert these lines? > > Our platform is vs2008, vb.net, .Net 2.0 > > Thanks > Phil > > =================================== > This list is hosted by DevelopMentor(R) http://www.develop.com > > View archives and manage your subscription(s) at http://discuss.develop.com > -- Studying for the Turing test =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com