473,326 Members | 2,588 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Debug.WriteLine not working anymore

For some reason when I use Debug.WriteLine(), it does not send
anything to the output window any more. I have noticed this in C#,
VB.Net, and in Unmanaged C++. Any thoughts?

May 4 '07 #1
4 7157
Hi,
check the following link
http://support.microsoft.com/kb/815788

Regads,
Husam Al-A'aaj

"herc" wrote:
For some reason when I use Debug.WriteLine(), it does not send
anything to the output window any more. I have noticed this in C#,
VB.Net, and in Unmanaged C++. Any thoughts?

May 4 '07 #2
On May 4, 4:02 pm, herc <carto...@gmail.comwrote:
For some reason when I use Debug.WriteLine(), it does not send
anything to the output window any more. I have noticed this in C#,
VB.Net, and in Unmanaged C++. Any thoughts?
That has happened to me and I scratched my head for a while before I
realized I had changed the run type from Debug to Release. As long as
Release is selected, all Debug commands are ignored.

May 4 '07 #3
On May 4, 4:56 pm, z...@construction-imaging.com wrote:
On May 4, 4:02 pm, herc <carto...@gmail.comwrote:
For some reason when I use Debug.WriteLine(), it does not send
anything to the output window any more. I have noticed this in C#,
VB.Net, and in Unmanaged C++. Any thoughts?

That has happened to me and I scratched my head for a while before I
realized I had changed the run type from Debug to Release. As long as
Release is selected, all Debug commands are ignored.
Good point, but I am seeing this problem across different languages/
projects. The one I have open right now is in Debug and I don't
believe I am building anything in Release, for this is all internal
use stuff and simply turn off the DEBUG macro in unmanaged C++,
otherwise I ship debug version w/ source, makes finding bugs that much
easier!

Cartoper

May 7 '07 #4
On May 7, 12:57 pm, herc <carto...@gmail.comwrote:
On May 4, 4:56 pm, z...@construction-imaging.com wrote:
On May 4, 4:02 pm, herc <carto...@gmail.comwrote:
For some reason when I use Debug.WriteLine(), it does not send
anything to the output window any more. I have noticed this in C#,
VB.Net, and in Unmanaged C++. Any thoughts?
That has happened to me and I scratched my head for a while before I
realized I had changed the run type from Debug to Release. As long as
Release is selected, all Debug commands are ignored.
Just now, in an Unmanaged C program I called the WinSDK function
OutputDebugString() and still got no output in the debug window.
OutputDebugString() IS the WinSDK call to send things to the debugger
window, in release mode, macro change such that the call to
OutputDebugString() does not happen.

Cartoper

May 7 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Gijs Korremans | last post by:
Hi, I'm trying to debug a multithreaded windowsNT service with Boa Constructor but it's not working. I don't know how to debug a service (there's nothing on the internet about that) so I've made...
5
by: chris | last post by:
Hello all - Preface: This isn't a C# Builder question but if you happen to have the answer to my primary problem, please feel free to chime in ;-) I'm using Borland's C# Builder (Personal)...
7
by: Thomas Pecha | last post by:
Sorry for all who think this is easy, I was not able to handle this Coming from VB6 where with simple debug.print strAString you could write to debug window, I am totalling failing in vb.net...
5
by: John A Grandy | last post by:
how to use System.Diagnostics.Debug.WriteLine to write directly to a window viewable during debug mode (similar to Debug.Print in VB6)
7
by: Bernard Bourée | last post by:
In order to trace my job I placed some Debug.Writeline in my code but they don't appear in the output window! How to solve it? Thanks Bernard
46
by: Ian Boyd | last post by:
IIS5, on a Windows 2000 Server machine. Debeg.WriteLine "Hello, world!" How can i view it?
0
by: BA | last post by:
I posted on this once before and could not get a solution, I am hoping someone can help. I have a very strange code debug behavior that I cannot make heads or tails of: I have c# code being...
1
by: jblazey999 | last post by:
There is a solution on a microsoft bug list. It is a visual studio bug.(my version VS C# Express 2005) Check this setting or similar in VS: Tools Options Debug General "Redirect all Output...
0
by: caa | last post by:
Hi there, people! I m working on a c# control. Using VS2003 and writing for .NET 1.1. I wrote an app that automaticly opens and closes (after a random Sleep) forms that own one instance of my...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.