Tech_Dr
asked on
Debug.Print and Debug.Write no longer work in Visual Studio 2010
Suddenly Debug.Print statements in my C# code are no longer being displayed in my Output window. I am running a Debug configuration of a simple Hello World C# Form application. "Project Properties/Build/Define DEBUG constant" is selected. Tools/Options/Debugging items are set to default values, including "Redirect all Output Window text . . ." cleared. I have made no app.config modifications (regarding TraceListeners or anything). I have relied on Debug.Print for years. This problem occurs in all my projects now.
Not sure if this is relevant but when I step over the first Debug.Print statement, this shows in the Output window: " Loaded 'C:\WINDOWS\Microsoft.Net\ assembly\G AC_MSIL\Sy stem.Confi guration\v 4.0_4.0.0. 0__b03f5f7 f11d50a3a\ System.Con figuration .dll'
Not sure if this is relevant but when I step over the first Debug.Print statement, this shows in the Output window: " Loaded 'C:\WINDOWS\Microsoft.Net\
ASKER
@ Idle Mind. By default the output of Debug statements appear in the Output window, not Immediate window. Anyway I already examined the Immediate window and nothing shows up there either.
Your "default" is definitely different from my setup then...
I've been using many flavors of Visual Studio since version 2003 and, for me, it's always been the way I described.
I'm currently using VS2010 Premium.
I've been using many flavors of Visual Studio since version 2003 and, for me, it's always been the way I described.
I'm currently using VS2010 Premium.
In the output window do you have
"Show Output From: Debug" selected
"Show Output From: Debug" selected
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I've always setup my Visual Studio with VB.Net as the default...wonder if this makes any difference?...
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Own outside research led to solution.
Console statements appear in the 'Output' window.