Debugging is a methodical process of finding and reducing the number of bugs in a game, thus making it behave as expected.

learn more… | top users | synonyms (1)

19
votes
7answers
1k views

How do you get useful data from playtesters? [closed]

There are a few types of feedback you can get from playtesters, and I wonder how to best gather data for each of them... Crash Reports. When my C++ game crashes while someone is playing it, how do I ...
18
votes
9answers
2k views

Real-time Debugging Techniques

There's nothing quite like the routine of tweaking a variable, compiling code that takes a few minutes, executing the code, realizing that your tweak was in the wrong direction and repeating the ...
15
votes
2answers
4k views

How can I debug shader programs?

I'm in the process of debugging GLSL vertex shaders and I can't shake the feeling that I'm doing it wrong. In general I have two strategies to make up for the lack of tracing I stuff values into a ...
11
votes
4answers
8k views

Debugging Shader Code?

I'm writing a game engine, and when I use a perspective camera I get a black screen. I am not going to ask exactly why this is because there would be a lot of code to share and, frankly, I think that'...
8
votes
1answer
319 views

Curious Transparent Holes Render Artifact

So I'm trying to implement "smooth" terrain in my block engine by giving each surface block a heightmap. Basically, what I do to generate these "heightmaps" for each block is I generate the heights ...
7
votes
2answers
1k views

Scrolling Box2D DebugDraw

I'm developing a game using Box2D (javascript implementation - Box2DWeb), and I would like to know how I can pan the debug draw. I know the usual answer is - don't use debug draw, it's just for ...
6
votes
1answer
2k views

How to profile CPU and GPU performance if I have a monster PC?

I'm going to upgrade my PC soon. I'm worried that I will no longer spot performance losses in my game because of the better specs. I can check memory usage easily, but how do I check and debug CPU ...
6
votes
2answers
771 views

How could an XNA game close with no exception being thrown?

I've been messing with my game's network code recently (TCP/UDP sockets) and my game keeps shutting down with no exceptions being thrown at all. It runs fine until the disconnection of a client, so I ...
6
votes
1answer
1k views

What is the best way to debug and profile a web application on an iPod in Mobile Safari? [closed]

I've built a web app that makes heavy use of JavaScript and HTML5 canvas. It's easy to debug in Chrome, but on a mobile device the developer tools are much less robust. Is there a tool or technique ...
6
votes
1answer
3k views

Atmospheric Scattering

I'm trying to implement atmospheric scattering based on Sean O`Neil algorithm that was published in GPU Gems 2. But I have some trouble getting the shader to work. I've downloaded sample code of O`...
5
votes
4answers
771 views

Debugging tips? [closed]

I'm new to games programming and I'm working on a C#/XNA project. Something I'm spending a lot of time on is debugging. Obviously as games run in a loop finding the exact iteration that a bad ...
5
votes
2answers
1k views

How do I get a new license for gDEBugger after the 1 free year?

I downloaded the gDEBugger from gremedy over a year ago, with their one year free license. The license has since expired and their site says that I'll be presented with the option for 1 year free ...
5
votes
1answer
2k views

Ogre FPS Overlay

I want to make a FPS and debugging info overlay similar to the one in the bottom of this image http://www.ogre3d.org/tikiwiki/dl1692&display but without using SDKTrays or OIS, can anyone give me a ...
5
votes
1answer
123 views

Is it possible to show vertex information in tables in VS2012 like in PIX?

In PIX I was able to watch the objects' vertex data at different stages in tables, like before vertex shader, between vertex and pixel shaders, and so on. Can you see this in Visual Studio 2012 ...
4
votes
2answers
882 views

Debugging/Logging Techniques for End Users

I searched a bit, but didn't find anything particularly pertinent to my problem - so please do excuse me if I missed something! A few months back I inherited the source to a fairly-popular indie game ...
4
votes
6answers
384 views

Object oriented approach to debug mode

I'd like to introduce a way to turn off/on debug messages and in-game tooling (tweak menus, for example) without non-game related branches, e.g: if(DEBUG_MODE) { // show tweak menu // some ...
4
votes
1answer
118 views

How to make an Assert.IsNull test pass when the value is reported as <null>?

I've just started using unity tests with the built in editor tests. After making my test and finding out that it constantly failed I debugged the code and found that a static object was set to a new ...
4
votes
1answer
1k views

How do I debug two android devices simultaneously in Eclipse?

I have a multiplayer game which should be tested on two devices at the same time, if possible, with debugging. Can eclipse do this? If so, how?
4
votes
3answers
893 views

Debugging a custom content pipeline processor in XNA?

I'm working with a custom made content pipeline designed to work with the program Tiled (using the TiledLibrary found here). I am running into trouble with the MapProcessor class in the custom content ...
4
votes
1answer
598 views

Android Java: Way to effectively pause system time while debugging?

In my project, I call nanoTime and use that to get a deltaTime which I pass to my entities and animations. However, while debugging (for example, stepping through my code), the system time on my ...
4
votes
2answers
508 views

Particle and Physics problem

This was originally a forum post so I hope you guys don't mind it being 2 questions in one. I am making a game and I got some basic physics implemented. I have 2 problems, 1 with particles being ...
4
votes
1answer
2k views

Bullet physics debug drawing not working

Background I am following on from this question, which isn't answered yet. Basically I have a cube and a UVSphere in my scene, with UVSphere on the top of the cube without touching the cube. Both ...
4
votes
1answer
5k views

Android emulator with acceleration and gyroscope simulation [closed]

Is there an Android emulator that is compatible with eclipse that can simulate acceleration and tilting of a mobile device?
3
votes
6answers
9k views

Why do my point lights disappear when another nearby light is above 1.85 range?

I'm making a game with a dungeon setting in Unity 3D. Many torches line the walls. I'm using a point light over each torch to simulate the flame. However, when two torches are across from each other, ...
3
votes
1answer
306 views

Why is GameObject.FindGameObjectsWithTag returning null?

I'm currently working on refactoring my gravity simulator, but I'm running into a problem. I have two GameObjects, both tagged with the tag "Body", as you can see below: I'm attempting to cache a ...
3
votes
3answers
2k views

Can I debug XNA Xbox 360 games on my PC?

If I made an Xbox 360 game with XNA, would I need to debug it on the Xbox 360 as I was coding it? Or would there be a small emulator on my computer to debug it?
3
votes
1answer
50 views

How can I Debug.Draw different shapes in unity?

I want draw new shapes in Sence for example I want Debug.DrawSphere can I Debug.DrawCollider? Is possible that I Debug.DrawSphereCast
3
votes
1answer
80 views

How to debug a DirectX crash on client machine?

I have customers who are experiencing crashes which I can't reproduce on my machine. From the minidumps they sent over, it appears that their crashes all seem to be in unexplained Direct3D calls, ...
3
votes
2answers
376 views

Efficient way to output/display debugging data in a window

I'm writing a program in Visual Studio, C++ with OpenGL and for the first time, I think it will be beneficial to see some live data on top of my display/render window. To give some scope, I'm ...
3
votes
2answers
175 views

How to stop deltaTime while debugging

Framework: LibGDX IDE: Android Studio Game based on Kilobolt tutorial While debugging, the frame delta time i get using Gdx.graphics.getDeltaTime()continues to increment so when i stop debugging ...
2
votes
1answer
492 views

Perlin Noise for game terrain; math error (unexpected breaks in terrain (3D grid))

So, I'm learning how to generate terrain using Perlin Noise, and I came across this code: http://stackoverflow.com/questions/4753055/perlin-noise-generation-for-terrain/4753123#4753123 PerlinNoise.h ...
2
votes
1answer
107 views

In Unity, why does my IndexOutOfRange exception disappear when trying to debug it?

I don't get errors when playing from Unity "Game" tab. But when I build an executable (development or not) it stucks. I get "IndexOutOfRange" exception. Which also magically disappears (yes) when I ...
2
votes
1answer
107 views

Working around the current sad state of mobile GPU drivers

I'm working on a OpenGL ES3 app for Android: for various reasons, I decided to roll my own mini-OpenGL rendering engine. So far so good. Problem is, the GPU drivers in the mobile industry are such ...
2
votes
1answer
1k views

Is there a way to view all colliders in a unity project at runtime (after the game have been deployed)?

I'm have created a small Unity project but physics has weird behavior (bug). Unfortunately it only happens on some specific hardware (after build), not on development machine. I don't know what is ...
2
votes
2answers
263 views

Debug data visualization best practices

I found debugging games especially hard for some obvious reasons. It's hard to monitor some internal values in dynamic, conditional breakpoints helps somehow, but only to detect some specific ...
2
votes
1answer
259 views

How to debug pyglet/opengl bus errors

I'm using pyglet for game development, and sometimes encounter "bus errors". They are not consistently repeatable, and whenever I try to do simple debugging (eg move/remove variables, etc), the errors ...
1
vote
2answers
420 views

XNA 4.0 problem Initializing Instanced Classes in for loop

Okay so this is kind of weird, I have some code that creates particle.cs instances public void AddParticle() { for (int i = 0; i < Density; i++) { particle = new ...
1
vote
2answers
261 views

Can I develop a game for Kinect without a Kinect?

I have to make a game in Unity3D using Kinect. The problem is I don't have the Kinect yet. I need to wait until they deliver it to me. Can I imitate Kinect's movement for debugging my app?
1
vote
2answers
2k views

Can't get debug spew for Direct3D9

The Direct3D9 debug runtime's debug output does not appear to be working correctly. I linked against d3dx9d.lib instead of d3dx9.lib and defined D3D_DEBUG_INFO and I also set the debug runtime on in ...
1
vote
1answer
656 views

How to debug a 2D arcade game easily?

I am trying to learn pygame. In order to do that, I have downloaded one of their examples : http://rpg-world.googlecode.com/files/rpg-world-src-0.93.tar.gz And started to run it in debug mode. ...
1
vote
2answers
183 views

2D Lighting Glitch

I've been working on a game in Java, and recently I decided to try out my game on a netbook just to see how it would run. While I do get a constant and decent FPS, it appears that my lighting ...
1
vote
1answer
75 views

How can I show information from a variety of sources in my debug menu?

I'm creating a debug menu, and I want to be able to show a lot of information (variables) on that menu. This information will come from a lot of classes (instances). How can I show a lot of ...
1
vote
1answer
221 views

Can I limit the number of shader units used by my video card?

Can I limit the number of shader units used by my video card? (A shader unit is the part of the hardware which can execute a shader program, where each unit runs in parallel). I'm interested in this ...
1
vote
2answers
48 views

Unity get more than 2 lines of log height

Unity does only display 2 lines in height for each log, at least with the default settings. I couldn't find a menu, where I could change this. I want to display a matrix, and I need to see the log ...
1
vote
1answer
268 views

How can I profile and debug my usage of D3D10?

I've been working on D3D 10 for about 6 months and I have accumulated a basic framework. The thing is I get frame rate spikes. Even when I have a simple cube on the screen each side with its own ...
1
vote
2answers
168 views

How can I automate high-level user interactions to test correctness of my game?

I am trying to automatically simulate the game experience in my programming game. I think Expect is the way to do it because it creates its own tty for the process, becoming independent process of the ...
1
vote
1answer
85 views

LibGDX: creating actor conformed by other actors

I am making my custom actor class, made up by 3 actors(oneProgressBar, one Label and one TextButton), because I will be using this many times, so it's not a good idea to create 3 of that actors when I ...
1
vote
1answer
35 views

Why do I get 3 lines of log at Monitor.exe when using Debug.Log in Unity?

I'm debugging a real device. In a GUILayer.Button I've put a single Debug.Log() message, like in this code Code: if( GUILayout.Button( "Click to Test." ) ) { Debug.Log( "XAVI Clicked!" ); } ...
1
vote
1answer
25 views

Function messages wont send when identical conditions will message to activate another function

So in working with my game, there aren't any syntax or compile errors, but there's this one bug that I've been working on to fix for a few days on and off and I can't seem to make heads or tails of ...
1
vote
1answer
241 views

What's the best way to handle numerous recurring log entries in game loop?

I have a custom logging system, use of which is scattered all over the engine and game. The system is linked to a "LogStore" that has an std::vector<string> logs[NUM_LOG_TYPES] - each vector ...