function populateDebugFolder(
  debugController,
  debugOptionsFolder,
  guiState,
  onChange,
) {
  updateDebugFolder(debugOptionsFolder, guiState.debugEnabled);

  debugController.onChange((value) => {
    guiState.debugEnabled = value;
    onChange('renderer', value ? debugRendererName : guiState.renderer);
    updateDebugFolder(debugOptionsFolder, guiState.debugEnabled);
  });
}
Populate the parent folder that holds the debug enabled button and the
folder with all the debug options in it. When debug is enabled it should
open the folder holding all the debug options.
@param {dat.GUIController} debugController The GUI controller.
@param {dat.GUI} debugOptionsFolder The folder that holds all the debug
    options.
@param {Object} guiState The GUI State.
@param {function(string, *):void} onChange On Change method.