Can't see Debug statements in DebugView?

Posted at: 5/24/2007 at 6:49 AM by saravana

First of all to see debug statements inside DebugView you need to compile your assemblies in "Debug" mode. For optimization reasons if you compile your assemblies in "Release" mode all the System.Diagnostics.Debug.WriteLine statements will be ignored by the compiler and you won't see any output in the DebugView.

When it comes to BizTalk project sometimes even though the tool bar will say the build is "Debug" as shown in the figure

 

When you actually look into the properties of the BizTalk project it may be configured for "Deployment", which is equivalent to the "Release" build and it won't emit any debug symbols.

So, in this case you need to set the configuration to "Development", which is equivalent to "Debug" build.

Nandri!

Saravana

Tags: |  Categories: .NET | BizTalk General
Actions: Email this article Email | Kick it! | DZone it! | Save to del.icio.us | Technorati Links
Post Information: Permanent LinkPermalink | CommentsComments(14) | Comments RSS

Comments

Thursday, May 24, 2007 5:45 PM
Richard
Hi Saravana!

First I have to say I'm impressed of your blog posting ratio as well as the number of post on the newsgroups. Keep it up! It helped me a number of times!

I just wanna add that when using DebugView via remote desktop one has to log in using the console user (mstsc -v:servername /F -console).

I guess this makes sense in away but I'd like a more technical explanation ... Have you experienced the same and if so could you explain it?
Thursday, May 24, 2007 9:07 PM
Saravana Kumar
Hi Richard, We experienced similar problems in the past. If I remember correctly enabling "Capter win32" and "Capture kernel" options will enable debug statements to appear in debugview. I'm not an windows internal expert, I guess the debug infrastrucuture (especially kernel mode DbgPrint) works on the basis of subscription. There can be only one subscriber. When you connect using -console command, that's literally equivalent to staying infront of the physical machine.

Saravana
Friday, June 08, 2007 2:35 PM
Anonymous
Anonymous
Hi!  Nice blog.  Just wanted to let you know that if you use System.Diagnostics.Trace.WriteLine instead of System.Diagnostics.Debug.Writeline, the output will always appear in debugview, regardless of whether it is a debug or release build.
Monday, July 12, 2010 8:53 AM
pay day loans
Let me tell you the secret that has led me to my goal. My strength lies solely in my tenacity. http://www.clicknpayday.com
Monday, August 02, 2010 3:44 AM
lenen
BKR problemen? Nu Geld lenen zonder BKR toetsing? Op zoek naar betrouwbare aanbieders? Wij vergelijken banken die u toch kunnen helpen aan een betrouwbare
Tuesday, August 03, 2010 2:47 AM
Asics shoes
What is your greatest strength?This strength can defeat all.
http://www.yaahshoes.com/
Thursday, August 05, 2010 1:44 AM
Seattle Limo
can someone tell me how to get the little avatars to show up in my comments section? thanx!
Saturday, August 07, 2010 3:52 PM
Cam Chat
Do you mind if I quote you on my blog if I link back to your website?
Saturday, August 07, 2010 4:19 PM
Chat Cam
I was very pleased to find this site.I wanted to thank you for this great read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post.
Tuesday, August 10, 2010 7:54 AM
hypotheek
Bereken zelf uw hypotheek. Hypotheek berekenen? Maak snel een indicatieve berekening van het maximale leenbedrag van uw hypotheek.
Sunday, August 15, 2010 10:33 PM
JustTrue
thanks!  very helpful post!! like the template btw ;)
Thursday, August 19, 2010 6:35 PM
Gold Bullion Bars
You made some good points there. I did a search on the topic and found most people will agree with your blog.
Friday, August 20, 2010 3:17 AM
Lange & Sohne Watches
<p>Thanks so much for posting these, they are fantastic! So bummed I missed what looks like a truly unique evening.Said by <a href="http://www.obwatches.com/">Breitling Watches</a>. <br>
</p>
Tuesday, August 24, 2010 5:06 AM
Apad
you can see the Efox-shop  that offers you all kinds of favourite products like  <a href="http://www.efox-shop.com"> Tablet PC  </a>
Touchscreen Tablet Laptop  Hipad
<a href="www.efox-shop.com/.../...Ipad-Style.html"> Apad  </a>
and  <a href="http://www.efox-shop.com"> android Tablet PC </a>  with high quality, fashion style and competitive price in http://www.efox-shop.com

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading