function populateDebugOptionsFolder(
  debugOptionsFolder,
  guiState,
  onChangeInternal,
) {
  const debugState = guiState.debug;
  Object.keys(DebugDrawer.config).map((key) => {
    debugOptionsFolder.add(debugState, key, 0, 50).onChange((value) => {
      debugState[key] = value;
      DebugDrawer.config[key] = debugState[key];
      onChangeInternal();
    });
  });
}
Populates the folder holding all the debug renderer options.
@param {dat.GUI} debugOptionsFolder The folder that holds all the debug
    options.
@param {Object} guiState The GUI State.
@param {function():void} onChangeInternal Internal on change method.