Debugging

Learn how to debug the Kakara Engine!

Logging

The Kakara Engine logs information through a logger. It logs debug, warn, severe, and error information. In order for the logging to show up you must add a logger implementation. A good one to use is log4j or logback. You can use it through Maven or Gradle by adding it to your dependencies.

compile "org.slf4j:slf4j-simple:1.8.0-beta4"

After adding that logging should be enabled.

If you are using Gradle, be sure to run your game through Gradle.

LWJGL Debugging

If you want to debug any LWJGL operations you can use the following:

// Debug Memory Allocator
Configuration.DEBUG_MEMORY_ALLOCATOR.set(true);

// Other LWJGL debug flags.
System.setProperty("org.lwjgl.util.Debug", "true");
System.setProperty("org.lwjgl.util.NoChecks", "false");
System.setProperty("org.lwjgl.util.DebugLoader", "true");
System.setProperty("org.lwjgl.util.DebugAllocator", "true");
System.setProperty("org.lwjgl.util.DebugStack", "true");

JVM Crashes

Experiencing JVM crashes from OpenGL errors? Try out the LWJGL Debugger.

If the crash is from the Engine source code, please report a JVM crash here.

Last updated