Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [debugging]

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

-1
votes
2answers
99 views

What is wrong with this particular code?

I have to correct this code without changing the structure. Cannot seem to figure out what's wrong. missiles is an array of ...
0
votes
0answers
19 views

How can I debug my game on mobile device?

I've been creating this game on my computer for months and everything works fine. But when I built the project and installed it into my android device, it doesn't run as smoothly. I don't wanna use ...
0
votes
1answer
23 views

Player light color he collects before checkpoint is getting reset when he restarts at checkpoint

I have a child object for my player called Light. The light color changes when the player touches balls of different colors. When I respawn at a checkpoint, the light is getting reset to the default ...
0
votes
0answers
8 views

Debugging a server with JUnit - showing the stacktrace after crash

I implemented a server that needs some testing and just experienced that when the server crashes, no stacktrace is shown. A simplification of a basic test looks like this: ...
0
votes
1answer
20 views

Instantiate an object and translate it randomly

My goal through this code in C # is that each time the player presses the Q I create a cube at a fixed position given by another object, then begin translating it in a random direction. ie. first ...
0
votes
0answers
26 views

How to find the source of a memory leak in a Blockchain + Node.js game

We have been working in a Node.js game, part of a game network, which seems to be working slower and slower as you keep it open, as well as it seems to increase the RAM and CPU usage over time. We ...
0
votes
1answer
63 views

How can I debug a black screen when testing on a device?

I have made an Android game with Unity. But, when I opened my game, I see a black screen and a closed game. It works on a tablet but does not work on mobile phones. I tested it on 2 mobile phones. ...
2
votes
1answer
23 views

Can I run a script and generate warning when Unity project is saved?

Context: I'm working with Unity using Git and we have .gitignore setup so that we could create "_local" folder anywhere in Assets and it won't be commited. It makes for kind of a Debug/Backup folder, ...
0
votes
1answer
30 views

“Video system not initialized” error

I always get the error message "video system not initialized" I don't get where I went wrong with the code below: ...
0
votes
0answers
128 views

Error: Program type already present: android.support.v4.app.NavUtils

Every time I try to build an APK file, it gives me an error. I fix one and then I get another and another. This was my last try: My gradle file: ...
1
vote
2answers
95 views

Null Reference Exception error occurs when trying to override AndroidManifest file in unity?

So I Created A manifest file in Assets/Plugin/Android/. The File contains: ...
0
votes
1answer
28 views

How to know the adresses an editor modifies while saving a file

I hope this question belongs here. Suppose an editor for a specific file extension. It usually has a user friendly interface so you don't see raw data. Once you edit anything and save the editor ...
2
votes
1answer
36 views

is there any method to simply ignore some files in unity build?

as im trying to build my new app on unity android specially when i want to use gradle, there is always some conflict with manifest or libraries and ..... for debug and problem exploration i need to ...
2
votes
1answer
54 views

Piece of code causes game to freeze, then keep playing after sometime

Games Basic Premise Ball rolls along procedurally generated path. Click to changer directions. Don't fall off. I have a script dedicated to the path. The path is made up of 20 cubes, along the x+ and ...
0
votes
2answers
136 views

NullReferenceException in my inventory system [duplicate]

I'm making a simplified inventory system for a 3d game. When I try to pick up an object, I get the following error: NullReferenceException: Object reference not set to an instance of an object ...
0
votes
1answer
284 views

How to get error line when debugging APK from Logcat

I made android game by Unity and built APK. When I got error from this game, I can see the error message: ...
0
votes
0answers
214 views

Bug about prefabs that causes Unity3D crashing

I'm having an issue that is difficult for me to solve it because Unity3D crashes when the problem happens and I can not figure out where the problem is. What I have been able to understand so far is ...
0
votes
1answer
37 views

When is transform width in code not equal to the transform width in inspector?

I've come across a strange case in Unity's UI where the width of a RectTransform isn't the same as what is being reported. I have a transform which is 50 by 50 with no scaling, it is a root object of ...
1
vote
1answer
47 views

What debugging info should I put in the “About” box

I'm developing an Android game with the idea of publishing it, and I wonder what info should I put in the "About" dialog that many main menus have. The idea is to make bug report and debugging easier....
1
vote
1answer
36 views

Does Debug.LogAssert gets deleted in Unity once I build the game?

Does Debug.LogAssert(expression) gets deleted in Unity once I build the game? I was not able to find it here. I feel like it should get deleted, but still I can ...
1
vote
0answers
261 views

How to approach debugging of java.lang.NullPointerException in android build of unity app?

We are getting an obscure java.lang.NullPointerException when building a Unity app for android. There's not much information here that I can trace back to our code. Does anyone have advice about how ...
1
vote
0answers
266 views

How to figure out why a given shader compilation causes an invalid operation error?

I have 2 versions of a program. The only difference being that in one, a geometry shader is compiled and in the other it is not. In all other regards both programs are identical, character by ...
1
vote
0answers
57 views

A question about HLSL debugger in Visual Studio Graphic Diagnostics

Here 's the thing. I developed a graphic project using SharpDx. Every time I actived the graphic diagnostic and debuged some hlsl code in my shaders, It always showed me the disassembling code rather ...
3
votes
0answers
93 views

Phantom objects in ray tracing

I am attempting to add volumetric shadowing to an application I am working on to test some things. For this effect I wrote the following fragment ...
-1
votes
1answer
134 views

Why is the line not being drawn?

I'm trying to add a few polishing touches to my puzzle game (made in Game Maker) in the vein of Ironclad. The following code is for adding a gem object to a stack that already has at least one other ...
4
votes
1answer
1k views

Mute sound in editor in Unity

Is it possible to mute sound in editor in Unity? I mean not in the game, but in the editor, so that when I am debugging there would be no sound whatsoever.
1
vote
1answer
313 views

Find an infinite loop in a very big project in Unity

How can I find an infinite loop in a very big project in Unity? I tried to use breakpoints in MonoDevelop and debug, but I was not able to track the loop. I tried to put ...
3
votes
0answers
172 views

Unity3d Sprite Mask Nonexistent in Build

I am developing a 2D game which uses sprite masks to limit the player's information to a circle around them. The feature works perfectly in the Unity Editor. It can be disabled and reenabled, have the ...
2
votes
0answers
411 views

The identifier is not in the scope! [closed]

I have a typical foreach loop in a coroutine like: ...
2
votes
1answer
127 views

Debugging an AMD GPU specific problem without an AMD GPU

I've recently started to receive reports from users that I game I'm working on isn't rendering properly on AMD GPUs. I'd like to track down the problem and fix it, but I'm a hobby developer just using ...
3
votes
0answers
171 views

Debug Unity DLLs in Windows standalone build

I'm trying to publish a game on the Windows Store using a standalone Windows build in Unity 5.6.2 and Desktop Bridge. Despite unchecking "development build", three Unity DLLs remain in debug mode, ...
1
vote
0answers
510 views

Directx11 create Texture2D using subresourceData

I'm trying to create immutable texture in d3d11 so I want to use subresourceData, every tutorial on textures creates them with 2nd argument being null and after that updates subresource but I want to ...
0
votes
0answers
19 views

How to make Unity NullReferenceExceptions more informative

Is there a way to modify the NullReferenceException for Unity gameObjects so that not only does it say "object reference not set to an instance of an object," but also says exactly what the name of ...
1
vote
1answer
931 views

Why does the Debug.DrawRay return these weird lines

I am working on a small feature of a 2D mobile game where a indicator points towards a object in 2D space. I am trying to make the indicator turn towards the object, however the vector I am trying to ...
2
votes
1answer
83 views

How to know if these profiler values are good or bad?

I'm making a 2D game for Android Mobile using LibGDX and Java in Android Studio. My game mostly runs alright with 60FPS, but for some time to time it lowers to 50FPS. I'm trying to find out what ...
4
votes
1answer
461 views

Graphical mesh lags behind collision shape in BulletPhysics debug drawing

In Bullet Physics when I debug draw physics world the graphical mesh lags behind the collsion shape. ...
1
vote
0answers
175 views

Prevent Unity optimizing local variables out

Is there a way to instruct Unity compiler not optimize (best only for builds run from Unity editor)? More precisely, I would like it to stop removing local variables, because it complicates debugging. ...
1
vote
1answer
27 views

Is this possible to edit the Unity app through inspector while running on Android device?

When on PC, I can run the app and edit things temporarily through the inspector. I know that I can attach the Android ADB and ...
2
votes
0answers
62 views

Are there well-known tools for chasing down VRAM & GTT memory leaks? [closed]

Problem. I have inherited a large C++ 3D graphics codebase (with some shader code). The program runs for about 1-5 minutes before crashing. Problem Data. Using system tools, one can see a sharp rise ...
8
votes
1answer
252 views

How to report bugs found on procedurally generated levels?

There is many topics on how procedural generating works but I couldn't find any info on how to test and - what's more important - how to report bugs that may occur on procedurally generated levels. ...
0
votes
1answer
710 views

How to generate a log file from a Unity WebGL build?

I want to create a log file for every time my WebGL game is played and have the errors and warnings with detail in there. I know how to make the log file I just don't know how to get the errors and ...
0
votes
1answer
50 views

Is the 'partially checked' build sufficient to run the debug version of Direct3D 9?

To run Direct3D 9 in debug, it is necessary to "install a 'checked' version of the OS". The checked version of Windows comes in both full and partial flavors. It seems that the partial version is ...
0
votes
1answer
492 views

Simple Java 2D Game : Player Doesn't Move

I'm a beginner at java and I'm trying to make a simple 2D game as a practice, and i have a problem here with the player, I've tried a lot to make it move but it didn't work. These are the classes that ...
0
votes
1answer
205 views

Unity TopDown parallax effect only working in three of four directions

I'm a hobbyist at programming so I'm sure I'm missing something very simple: Basically I have a script that has a method for repositioning a 3x3 grid of tiles every time the player goes out of the ...
4
votes
2answers
3k views

How can I diagnose a Unity crash when running the game on a phone?

I have a 2D android game that is in beta on Google Play. It has about 100 installations, but no testers. I'm the only developer. Some of the users have reported app crashes, and because they are not ...
1
vote
1answer
30 views

Offset direction stops working when I get too close

I have a script trying to get the gun aim at the target instead of the origin: It's partially working. but when I get too close with the mouse the player starts spinning I would appreciate a help ...
1
vote
2answers
1k views

Unet how to control child gameobject?

I'm currently getting into the Unity networking system called unet. I have a child of the local player authority, the weapon. The weapon (PlasmaCannon_left and right) have a script handling firing, ...
4
votes
1answer
609 views

“Highlighting” Faces/Edges/Corners

How would I "highlight" faces/edges/corners? I would prefer an explanation OpenGL if possible. Here's an example: