I'm a visual studio newbie, currently developing a game using VS 2010 express, C# and XNA 4.0 .
I'm trying to debug a little game I'm developing, using a Console.WriteLine call when a certain event occur. Unfortunately when I execute the program the visual studio layout changes and the output panel disappear until the program exits (so I can analyze the output only after the program ends).
I would like to know if it possible and how, to keep the output panel visible.
在调试模式下,只需通过转到View-> Output再次显示它
2 things:
I output my debug stuff in xna4.0 with
System.Diagnostic.Debug.WriteLine("stuff");
To view output just go to View -> Output
or Alt+2
If you found this question through a search and you do not see the Output Window under the "View" menu, it is most likely because you are viewing Visual C# 2010 under 'Basic Settings.' Under basic settings, you can find the output menu as follows:
Debug -> Windows -> Output
If you want to get out of basic settings, you can change as well:
Tools > Settings > Expert Settings
And then you will be able to access the Output Window as described in the other answers.
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.