Re: tracing in webservices

Tech-Archive recommends: Fix windows errors by optimizing your registry



"eschneider" <eschneider@xxxxxxxxxxxxxxxx> wrote in
news:exVR$qXzIHA.4452@xxxxxxxxxxxxxxxxxxxx:

I think they get removed in the release build.


"W Buckner" <wxb1@xxxxxxxxxxx> wrote in message
news:O8w3k.5576$jI5.2678@xxxxxxxxxxxxxxxxxxxxxxx
I'm trying to implement a trace from within my webservice. I'm
debugging the trace code in the web service but every line that
actually does any output is ignore within VS2005.

for example:

Trace.WriteLine("hello")

The above line and any line that actually tries to write to the trace
is ignored. I can't set a breakpoint on the line or force the
debugger to go to it when debugging under VS2005. Does anybody know
what's going on here?




I found the solution here:

http://msdn.microsoft.com/en-us/library/b0ectfxd(VS.80).aspx

Just add the following tags to the web.config:

<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>


<system.codedom>
<compilers>
<compiler language="c#;cs;csharp"
extension=".cs"
compilerOptions="/d:TRACE"
type="Microsoft.CSharp.CSharpCodeProvider, System,
Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
warningLevel="1" />
<compiler language="VB"
extension=".vb"
compilerOptions="/d:Trace=true"
type="Microsoft.VisualBasic.VBCodeProvider, System,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</compilers>
</system.codedom>


The MS article has more information.

.



Relevant Pages

  • tracing in webservices
    ... I'm trying to implement a trace from within my webservice. ... the trace code in the web service but every line that actually does any ... to it when debugging under VS2005. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Dynamically loading a static C library (compiler suggestion?)
    ... I am programming a microcontroller, ... Manufacturer suggests using one of the following compilers: ... and supplies a system library for their controller for use with one of ... Debugging is good. ...
    (comp.os.msdos.programmer)
  • Very basic web service problems
    ... problem creating Windows apps, class libraries, using windows ... get the expected "Debugging Not Enabled" dialog box with the two ... Make sure that the server is operating correctly. ... I previously was able to create a web service that does most of what I ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Determining whether running in debug/release mode
    ... Most compilers attach this to any ... determine the level of debugging. ... > How do I determine whether Im running in debug or release mode from code> please. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: [9fans] Good enough approximation for ape/pcc
    ... What happens when there is no caller because the function got inlined? ... One of the many nice things about the Plan 9 compilers. ... in compile time and the unreliability of the debugging environment ...
    (comp.os.plan9)