Console.Write vs Debug.Print

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
 
B

Barry Kelly

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
 
L

Larry Rebich

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

Larry Rebich
 
B

Barry Kelly

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
 
L

Larry Rebich

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

Larry
 
B

Barry Kelly

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
 

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