Goonstation 13 - Modules - Types

/datum/debugFileOutput

This is a generic handler for logging your dumb JS errors generated by html popups

  1. Add your logfile to the validFiles list
  2. Include the "browserassets/js/errorHandler.js" file in your html file (if using chui, skip this step) (look at browserOutput.html for an example)
  3. Call attachErrorHandler('yourLogFile'); at the top of your JS (again see browserOutput.js for an example)