📓
engine
  • Kakara Engine
  • Debugging
  • Getting Started
    • Getting the Engine
    • A New Game
    • Game Items
    • Components
    • Textures
    • Model Loading
    • The Camera
    • Player Input
      • Practical use of the Input
    • Lighting
    • User Interface
  • Scene System
    • Scene System
  • Render System
    • Extensible Render Pipeline
      • Standard Shader Format
      • Voxel Shader Format
      • Particle Shader Format
      • Lighting Shader Format
      • Custom Pipelines
  • Java Documentation
Powered by GitBook
On this page
  • Logging
  • LWJGL Debugging
  • JVM Crashes

Was this helpful?

Debugging

Learn how to debug the Kakara Engine!

PreviousKakara EngineNextGetting the Engine

Last updated 3 years ago

Was this helpful?

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 or . You can use it through Maven or Gradle by adding it to your dependencies.

compile "org.slf4j:slf4j-simple:1.8.0-beta4"
compile("org.slf4j:slf4j-simple:1.8.0-beta4")
<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>slf4j-api</artifactId>
    <version>1.8.0-beta4</version>
</dependency>

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 .

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

log4j
logback
LWJGL Debugger
JVM crash here