Re: 70-316 unsure of the question

From: Relaxin (me_at_yourhouse.com)
Date: 01/28/05


Date: Thu, 27 Jan 2005 22:25:34 -0800

Tracing is enabled by default for both Debug and Release builds.

>From the MSDN documentation:

"In Visual Studio .NET projects, Trace is enabled by default. Therefore,
code is generated for all Trace methods in both release and debug builds.
This allows an end user to turn on tracing to help identify the problem
without the program having to be recompiled. By contrast, Debug is disabled
in release builds by default, so no executable code is generated for Debug
methods. To disable Trace, see the Visual Studio .NET documentation."

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdiagnosticstraceclasstopic.asp

I hope this helps some.

"Marcin Grabowski" <jabs@tlen.pl> wrote in message
news:O29RUlKBFHA.3664@TK2MSFTNGP14.phx.gbl...
> Hi,
>
> I have been digging thru the braindumps and I got a bit confused with the
> following question. I enclosed my answer - can anybody correct me if I am
> wrong... Thanks
>
> Sorry if this is a wrong place to voice this kind of doubts.
>
> Marcin
>
> ------------------------------------------------------------------------
> You create an application that involved customer information retrieval.
> You include tracing in the various functions to provide easy debugging as
> and when needed. You change the build configuration to RELEASE, optamize
> the application and deploy you application on a shared folder in your
> client's network path. Multiple users access this application.
>
> After a few days you recieve notice that one user encouters an error while
> executing a particullar operation. You want to dubug the application for
> that one user.You want to include verbose information for the error's. How
> can you do this while not disturbing the optamizations and execution of
> the applications for other users. Chose all that apply
>
> A. Change the build configuration to DEBUG and compile the project. Copy
> the application from the debug folder to the user's local machine and
> create a shortcut to the application on the user's desktop.
> B. Copy the application from the shared network folder and deploy the
> application to the user's local machine. Create a shortcut to the
> application on the user's desktop.
> C. Change the .config file in the local machine and add an entry for the
> trace switch and set the value to 4
> D.Change the .config file in the shared network path and add an entry for
> the trace switch and set the value to 4
> E. Complie the project using /debug TRACE
> F. Complie the project using /TRACE mySwitch 4
>
> Most people chose B & C. But don't you have to compile application in the
> DEBUG mode to be able to use trace switches at all - I would go for A &C.
> ------------------------------------------------------------------------
>
>
>



Relevant Pages

  • Re: debugging
    ... debugging and tracing the program by putting .S in the code where I ... TRACE and DEBUG that are normally false. ... By turning trace on and off at strategic places in your code, re-compiling, then running your code with debug ON you will get exactly what you asked only for the code compiled while trace was ON. ...
    (comp.lang.forth)
  • Re: Anyone know how to add a "Debug window" in own app
    ... debug messages in a release build using Trace.WriteLine or Console.WriteLine ... > Because TRACE is defined in Release builds by VS.NET. ... > the people who use your code won't alter the config file? ... > config file will enable the default trace listener.) ...
    (microsoft.public.dotnet.framework)
  • Re: dynamic web page viewer based on url in query sting?
    ... Bob Mixon ... Microsoft SharePoint Portal Server MVP ... I have added trace and debug code to the Web Part so we can see what ... Both the debug and release versions are now available on my Web ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: dynamic web page viewer based on url in query sting?
    ... I have added trace and debug code to the Web Part so we can see what is going on. ... Initially download and install the debug version, it outputs more debug and trace information than the release version does. ... it can be a fully qualified URL or a relative URL; as long as it will properly return a browser page in the Pge Viewer Web Part. ... Microsoft SharePoint Portal Server MVP ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: newbie question about web.config, tracing
    ... The reason for the repost is that threads from devdex.com dont include the ... original and i have no way to know what the original question was. ... handled from the <trace> node of the webconfig file. ... I built a debug and a release solution. ...
    (microsoft.public.dotnet.framework.aspnet)

Loading