Tag Archive for GdxRuntimeException

Catching libgdx Exceptions in Eclipse

For those of you that actually know what you’re doing in Eclipse, you can skip this post.¬†For the rest of us, I wanted to share a quick tip for debugging libgdx in Eclipse.

Make sure to set the debugger to break on GdxRuntimeException or any other libgdx exceptions you want to inspect. This Stack Overflow post shows how.

If you don’t set the debugger to catch these exceptions, you’ll likely find that it breaks execution in the OpenGL thread, which is generally not very helpful, because the code that threw the original exception is in your game thread.