Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

watch console output panel in visual studio while running a XNA game

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.

like image 503
Heisenbug Avatar asked Oct 26 '11 10:10

Heisenbug


2 Answers

Whilst in Debug mode, simply show it again by going to View->Output

like image 186
Moo-Juice Avatar answered Sep 21 '22 06:09

Moo-Juice


2 things:

  1. I output my debug stuff in xna4.0 with

    System.Diagnostic.Debug.WriteLine("stuff");

  2. To view output just go to View -> Output or Alt+2

like image 45
Karis Avatar answered Sep 22 '22 06:09

Karis