newb Debug.Print ques

M

mp

WPF c#2008 Express
I've read the help but don't understand how to get Debug.Print to print to
the immediate window
according to help it is design time only as i read it...how useless is that?
how can i get easy debugging text at runtime to see what's going on in
program as it proceeds?
formerly in vb6 Debug.Print would print to immed window at runtime and I
could see what was happening
am i correct that it no longer functions?
private void button2_Click(object sender, RoutedEventArgs e)

{

System.Diagnostics.Debug.Print("Button clicked");

}



thanks

mark
 
P

Peter Duniho

WPF c#2008 Express
I've read the help but don't understand how to get Debug.Print to print
to
the immediate window
according to help it is design time only as i read it...how useless is
that?

According to what help? Please provide a link or other reference, because
if it actually says what you claim it says, it needs to be fixed.
how can i get easy debugging text at runtime to see what's going on in
program as it proceeds?
formerly in vb6 Debug.Print would print to immed window at runtime and I
could see what was happening

VB6 has almost nothing to do with .NET. You should not expect identical
behavior between the two. The VB6 Immediate window isn't the same as the
C#/VB.NET/.NET Immediate window.
am i correct that it no longer functions?

It works fine. You just need to look in the correct window. It's the
Output window you want to look at (assuming default configuration...the
Debug class can be set up to write to any variety of listeners).

Pete
 
M

mp

Peter Duniho said:
According to what help? Please provide a link or other reference, because
if it actually says what you claim it says, it needs to be fixed.

well i thought it was weird at the time, but maybe i was hallucinating
again, i can't find it now and didn't bookmark or copy it apparently
thanks
mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top