Skip to main content Link Search Menu Expand Document (external link)

Logging

OPENRNDR uses kotlin-logging, which is a Kotlin flavoured wrapper around slf4j, to log its internal workings.

Enabling logging to console

First add slf4j-simple to your project’s dependencies.

dependencies {
    compile 'org.slf4j:slf4j-simple:1.7.36'
}

Then add -Dorg.slf4j.simpleLogger.defaultLogLevel=DEBUG to the VM arguments in the launch configuration.

Enabling OpenGL debug messages

If your graphics hardware and drivers support OpenGL debug contexts you can use -Dorg.openrndr.gl3.debug=TRUE to enable the debug messages.

Open the Run > Edit Configurations... menu in IntelliJ and make sure the VM Options text field contains -Dorg.openrndr.gl3.debug=true.

Using RenderDoc

RenderDoc is a graphics debugger currently available for Vulkan, D3D11, D3D12, OpenGL, and OpenGL ES development on Windows, Linux, Android, Stadia, and Nintendo Switch™.

This post explains how to use RenderDoc with OPENRNDR.

edit on GitHub