Console.Write vs Debug.Print

  • Thread starter Thread starter Larry Rebich
  • Start date Start date
L

Larry Rebich

I notice a lot of VB 2005 samples use Console.Write instead of Debug.Print.

How do I view the Console.Write output. In what window?

Larry Rebich
 
Larry said:
I notice a lot of VB 2005 samples use Console.Write instead of Debug.Print.

How do I view the Console.Write output. In what window?

In the console. When you compile them as a console application and run
them.


-- Barry
 
I'm sorry I don't understand. How do you compile a web application as a
console application?

Larry Rebich
 
Larry said:
I'm sorry I don't understand. How do you compile a web application as a
console application?

That's precisely it - you don't compile them as web applications. You
compile them as console applications.

-- Barry
 
So how do you compile it as a console app? All I see is to compile as Debug
or Release.

Larry
 
Larry said:
So how do you compile it as a console app? All I see is to compile as Debug
or Release.

File | New | Project... | (find Console Application in the window)

That's presuming the sample is either a snippet or a console application
already.

-- Barry
 
Back
Top