开发者

How to debug Xna 4.0 games on PC

I am very new to Xna 4.0 game development on Windows and finding it hard to debug in VS 2010. I really want to see my variable values while I am running the game. Is there any way you can debug? I see this as a debugging add-in. However, I am not sure If that would work with VS 2010. Is there any other add-in or any workaround? I am working开发者_JAVA百科 on Windows 7. thanks for the help.


You could just draw the variables you want to see on the screen. Check out this link:

http://msdn.microsoft.com/en-us/library/bb447673(XNAGameStudio.10).aspx


This has nothing to do with XNA. You can't see any variable values in VS2010 while the application is running. How would VS know, what variables to display?

For debugging purposes you can use Debug.Writeline in your code to write the value of the variable to the Console while running. That way you can track values of variables of your choice.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜