简体   繁体   中英

Eclipse like console in Visual Studio 2010 C#

I am going to do some code in c# using visual studio 2010. The problem is that every time I run program it does appear in command prompt.

I would like place the output of the program in the console like in the Eclipse. System.Diagnostics.Debug.Write("abc"); this does not work cause if I look at the output I see much more information than I want. I would like to see only data which would show in the command prompt .

Check out "Tools->Options->Debug->Output Window" - you should be able to decrease amount of traces to your liking.

Side note: normally "output of program" means results of Console.WriteXXXX methods, so maybe you are looking for something completely different.

I think you wish to turn off verbose Output logging so that only your Debug.Write's will be written to the output window.

To do this you goto Tools > Options > Debugging > Output Window > and turn off the verbose logging:

在此处输入图片说明

If you want to keep all of your output, you can redirect your Debug.Print to output to the Immediate Window instead.

Tools -> Options -> Debugging -> General | Click on Redirect all Output Window text to the Immediate Window.

This does not mean everything will be outputted to it, just the output that you designate in your code and any exception messages that get thrown. It's a lot less chatty and still keeps your Output window with all the standard messages.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM