Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Developer Mode

From MoodleDocs
Revision as of 11:56, 23 January 2012 by Mark Johnson (talk | contribs) (Created page with "This page outlines the admin settings that can (and probably should) be set when developing Moodle. '''Do Not''' use these settings on a production system, as it will cause majo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This page outlines the admin settings that can (and probably should) be set when developing Moodle. Do Not use these settings on a production system, as it will cause major performance issues. You can adjust these to your requirements, but they should cover most areas of development.

All the links below can be found in the Settings block.

Enable Debugging

The following settings will display errors, warnings, and notices generated by your code that should be fixed.

Site administration ► Development ► Debugging

  • Set "Debug Messages" to "DEVELOPER"
  • Check "Display Debug Messages"
  • Other settings on this page can be enabled as required.

Disable Caching

These settings will ensure that changes to Javascript will be reflected immediately, and will make Javascript easier to debug with tools like Firebug.

Site administration ► Appearance ► AJAX and Javascript

  • Disable "YUI Combo Loading"
  • Disable "Cache Javascript"

This setting will ensure that CSS and image changes are reflected immediately

Site administration ► Appearance ► Themes ► Theme settings

  • Check "Theme Designer Mode"

This setting will ensure that any language string changes are reflected immediately

Site administration ► Language ► Language settings

  • Uncheck "Cache all language strings"