Thoughts from Dan Miser RSS 2.0
# Monday, February 27, 2006
I use OutputDebugString (ODS) a lot when trying to trace through a problem with an application. Coupled with using DebugView from SysInternals, you can easily get a real good idea of where things are going wrong.

In .NET, you use Debug.WriteLine() to write ODS messages. This requires that your assemblies be built with DEBUG information to see the ODS messages. When working with ASP.NET pages, you have a some options to achieve this (the easiest couple are listed here):

  1. Include the Debug attribute in the Page tag for the aspx page. For example:
    
    <%@ Page language="c#"  Debug="true"%>
    Testing:<br>
    <%
    System.Diagnostics.Debug.Write("Testing");
    %>
    
  2. Include the debug attribute in the web.config file. For example, put this in a section underneath the <configuration> node. You can also do this by changing the config file when running the IIS Manager, selecting Properties for the Virtual Directory, going to the ASP.NET page, selecting Edit Configuration, going to the Application tab, and selecting Enable Debugging.
    
      <system.web>
        <compilation debug="true" defaultLanguage="c#" />
      </system.web>
    

Monday, February 27, 2006 2:17:00 PM (Central Standard Time, UTC-06:00)  #    Comments [1] -

Tracked by:
http://9nx-information.info/86904403/seven-network-australia.html [Pingback]
http://9nn-information.info/71575698/index.html [Pingback]
http://9nn-information.info/04115144/index.html [Pingback]
http://9nh-information.info/26122845/index.html [Pingback]
http://9ns-information.info/09432093/index.html [Pingback]
http://9nx-information.info/01103318/laperm-cat-breeders.html [Pingback]
http://9ne-information.info/50404859/index.html [Pingback]
http://9nb-information.info/46769352/index.html [Pingback]
http://9ng-information.info/57331378/garden-state-coin-show.html [Pingback]
http://9nn-information.info/46024967/medical-syaticar.html [Pingback]
http://9nv-information.info/90474101/anti-satellite-weapons.html [Pingback]
http://9nl-information.info/66797670/index.html [Pingback]
http://9qg-information.info/38912103/saima-ferrari.html [Pingback]
http://9oy-information.info/92393829/index.html [Pingback]
http://9oc-information.info/92083445/index.html [Pingback]
http://9qi-information.info/50881803/index.html [Pingback]
http://9oq-information.info/57246571/the-movie-without-a-paddle.html [Pingback]
http://9qh-information.info/71410561/index.html [Pingback]
http://9rw-information.info/29883548/index.html [Pingback]
http://9sn-information.info/96386095/index.html [Pingback]
http://9sg-information.info/05147287/legge-n-64-74.html [Pingback]
http://9rx-information.info/47232586/index.html [Pingback]
http://9rg-information.info/03725221/index.html [Pingback]
http://9sg-information.info/95938970/index.html [Pingback]
http://9rj-information.info/87291091/index.html [Pingback]
http://9rb-information.info/90028856/smith-house-resturant.html [Pingback]
http://9rm-information.info/70341097/index.html [Pingback]
http://9uafe-le-informazioni.info/37987069/index.html [Pingback]
http://9uaep-le-informazioni.info/79251599/index.html [Pingback]
http://9uafa-le-informazioni.info/53359237/index.html [Pingback]
http://9uaeh-le-informazioni.info/03599480/hotel-monopole-milano.html [Pingback]
http://9uafc-le-informazioni.info/22739324/allinurl-fobpro-com-photos.html [Pingback]
http://9uafk-le-informazioni.info/72870096/index.html [Pingback]
http://9uaeg-le-informazioni.info/22767410/michela-ferarri.html [Pingback]
http://9uaeb-le-informazioni.info/41666047/index.html [Pingback]
http://9uaft-le-informazioni.info/58817540/simona-santoni.html [Pingback]
http://9uaek-le-informazioni.info/43515197/index.html [Pingback]
http://9uagq-le-informazioni.info/45525747/elisabetta-mino-shatzu.html [Pingback]
http://9uagh-le-informazioni.info/89238137/index.html [Pingback]
http://9uagf-le-informazioni.info/85116148/g-star-uomo-maglietta.html [Pingback]
http://9uagr-le-informazioni.info/15854126/ricevere-musica-window-live-messenger... [Pingback]
http://9uahg-le-informazioni.info/80906077/kit-tomtom-5.html [Pingback]
http://9uago-le-informazioni.info/07962951/index.html [Pingback]
http://9uagn-le-informazioni.info/33832091/index.html [Pingback]
http://9uagg-le-informazioni.info/87775809/index.html [Pingback]
Sunday, October 15, 2006 6:53:00 AM (Central Daylight Time, UTC-05:00)
Can we do that in release mode also ?
Comments are closed.
Navigation
Archive
<February 2012>
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

© Copyright 2012
Dan Miser
Sign In
Statistics
Total Posts: 375
This Year: 3
This Month: 0
This Week: 0
Comments: 654
Themes
Pick a theme:
All Content © 2012, Dan Miser
DasBlog theme 'Business' created by Christoph De Baene (delarou)